Alex Rivera | Logout

Where does ASP.NET virtual path resolve the tilde "~"?

Asked 2010-12-30T14:09:36.427
14

Where does ASP.NET virtual path resolve the tilde ~ in the links, for example

<link rel="stylesheet" type="text/css" href="~/Css/Site.css" />

Does it redirect, or RedirectToAction in ASP.NET MVC?

Edit
Report

1 Answer

1

ASP.Net translates the tilde(~) with the application's root directory in every runat=server control. It is the equivalent for the HttpRuntime.AppDomainAppVirtualPath Property.

answered 2010-12-30T14:29:29.740

Your Answer