[Mono-bugs] [Bug 51092][Wis] New - ASP.NET DataGrid's HyperLinkColumn not interpreting tilde in link

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 17 Nov 2003 21:30:48 -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 peter@eringal.com.

http://bugzilla.ximian.com/show_bug.cgi?id=51092

--- shadow/51092	2003-11-17 21:30:48.000000000 -0500
+++ shadow/51092.tmp.14826	2003-11-17 21:30:48.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 51092
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: slackware 9.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: peter@eringal.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ASP.NET DataGrid's HyperLinkColumn not interpreting tilde in link
+
+Description of Problem:
+
+On an aspx page, if you have a datagrid with a HyperLinkColumn and set the
+DataNavigateUrlFormatString to a string starting with "~/", the link is not
+being translated to be relative to the app's base url. For example if you
+are viewing http://localhost:8080/dir/test.aspx which contains the
+described DataGrid. If DataNavigateUrlFormatString="~/base.apx" the link in
+the browser will be "http://localhost:8080/dir/~/base.aspx" even though it
+should be "http://localhost:8080/base.aspx"
+
+Here is a sample DataGrid that shows the problem:
+
+<asp:DataGrid Runat="server" ID="oGrid" AutoGenerateColumns="False"
+AllowSorting="True" Width="100%" GridLines="None">
+    <asp:HyperLinkColumn DataNavigateUrlField="UserId"
+						DataNavigateUrlFormatString="~/SchoolAdmin/editteacher.aspx?id={0}"
+						Text="Edit" />
+</asp:DataGrid>