阅读背景:

ASP.NET资源参考最佳实践

来源:互联网 

I'm relatively new to ASP.NET and was wondering if anyone could shed some light on when I should use relative references (e.g. ../images/banner_tinga.jpg) versus the tilde (e.g. ~/images/banner_tinga.jpg). Depending on the situation you can accomplish the same goal using either. What are the pros and cons of each mechanism? One argument for the relative reference seems to be Visual Studio's design time dislike for resources referenced by the tilde. Whenever I reference a css file that why it indicates it can not be found.I'm relatively new to ASP.NET and was wondering




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: