[Mono-bugs] [Bug 75887][Wis] New - ImageButton ImageUrl is always generates absolute path

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 23 15:31:13 EDT 2005


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 mrw at wanadoo.nl.

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

--- shadow/75887	2005-08-23 15:31:13.000000000 -0400
+++ shadow/75887.tmp.867	2005-08-23 15:31:13.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 75887
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mrw at wanadoo.nl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ImageButton ImageUrl is always generates absolute path
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When I set the ImageUrl property of an ImageButton to a relative path, say,
+_img/myimg.jpg, the output is always an absolute path, in this case
+/_img/myimg.jpg. However, usually, the webapp is not on the root of the
+webserver but in a virtual directory resulting in the image not being visible.
+
+Steps to reproduce the problem:
+1. Add a webapp under a virtual path (with mono-xsp-admin.conf)
+2. Add a ImageButton control to an ASPX page.
+3. Set the ImageUrl to a relative path to an image (inside the webapp of
+course): _img/myimg.jpg
+4. View the page.
+
+Actual Results:
+The ImageButton is shown with a broken image picture. The generated HTML
+has /_img/myimg.jpg as the img src.
+
+Expected Results:
+The ImageButton being shown with the picture specified in the absolute
+path. The generated HTML should have _img/myimg.jpg as the img src.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+Debian Etch (unstable)
+
+storm:~# mono --version
+Mono JIT compiler version 1.1.8.2, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+        TLS:           normal
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV      : normal
+        Globalization: normal


More information about the mono-bugs mailing list