Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • But I also kind of fixed this by making the Virtual Path property to /. It helped... Commented Jul 21, 2010 at 15:47
  • 1
    @deo - / and ~/ refer to 2 different paths - while they may appear the same in your development environment on your server they may be different. / is the absolute root of the server whereas ~/' is the absolute root of the current application. Do you see the difference? You usually only want to use ~/. Be sure that when you use /` that you understand where it will be pointing. Commented Jul 22, 2010 at 11:55
  • You can also set runat="server" on an HTML control and ASP.NET will convert the ~/ to the application root. Commented Mar 30, 2013 at 22:34