The Mighty Tilde
But one of the best kept and largely undocumented secrets in ASP.NET is the tilde character (~). The tilde is actually a shortcut notation for the HttpRuntime.AppDomainAppVirtualPath property, which, according to the .NET documentation, “returns the virtual path of the directory that contains the application hosted in the current application domain.” Another way to say it is that the ~ refers to the root of the virtual Web application, not the root of the Web server. The difference is subtle but crucial. It means that you can use a ~ to start the paths in your application and no matter where you move the application it will find the referenced files without problem.
September 8th, 2010 at 10:22 am
Buy:VPXL.Cialis Super Active+.Cialis Soft Tabs.Levitra.Viagra Professional.Cialis Professional.Propecia.Maxaman.Super Active ED Pack.Viagra Super Force.Zithromax.Tramadol.Soma.Viagra Soft Tabs.Cialis.Viagra.Viagra Super Active+….
November 11th, 2010 at 3:13 am
…
BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…