[Mono-bugs] [Bug 72415][Maj] New - When deriving from WebControl using a string to specify the tag, it uses the wrong tag when rendering
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 9 Feb 2005 14:15:49 -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 eto@shaw.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=72415
--- shadow/72415 2005-02-09 14:15:49.000000000 -0500
+++ shadow/72415.tmp.30771 2005-02-09 14:15:49.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 72415
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: gentoo linux
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: eto@shaw.ca
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: When deriving from WebControl using a string to specify the tag, it uses the wrong tag when rendering
+
+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 new class that derives from
+System.Web.UI.WebControls.WebControl
+2. In the constructor, call the base constructor like: base("select"), or
+base("div")
+3. Construct an instance of the new control and put it on a page
+
+Actual Results:
+The output always seems to put an <input> tag, rather than the one
+specified.
+
+Expected Results:
+The output should match what was passed in the constructor. <div>
+for "div", <select> for "select", etc.
+
+How often does this happen?
+Every Time.
+
+Additional Information:
+If you switch to use the HtmlTextWriterTag.Select or
+HtmlTextWriterTag.Div, then it works properly. Also, this works fine in
+the 1.0.5 release, just not the one in SVN