[Mono-bugs] [Bug 54495][Nor] New - ~/ doesn't always translate to the root directory
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 17 Feb 2004 18:22:03 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by martijn@boland.org.
http://bugzilla.ximian.com/show_bug.cgi?id=54495
--- shadow/54495 2004-02-17 18:22:03.000000000 -0500
+++ shadow/54495.tmp.18258 2004-02-17 18:22:03.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 54495
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: martijn@boland.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ~/ doesn't always translate to the root directory
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Create a .aspx page in the root dir
+2. Create a UserControl in a subdir /controls
+3. Include the UserControl in de .aspx page
+3. Put the following code in the page_load event of the UserControl:
+
+ HttpContext.Current.Response.Write(this.ResolveUrl("~/"));
+
+Actual Results:
+
+rootdir/controls/
+
+Expected Results:
+
+rootdir/
+
+How often does this happen?
+
+always
+
+Additional Information:
+
+The "~/" construct to get the application root dir is a rather obscure
+feature (almost no documentation), but it's used a lot in everyday
+applications (at least I myself use it a lot :-)).