https://bugzilla.novell.com/show_bug.cgi?id=327816
Summary: duplicated onchange attribute in TextBox with
AutoPostback
Product: Mono: Class Libraries
Version: 1.2
Platform: x86
OS/Version: openSUSE 10.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
Created an attachment (id=174368)
--> (https://bugzilla.novell.com/attachment.cgi?id=174368)
Test page
Steps to reproduce the problem:
1. Insert a TextBox in a page, and set the AutoPostback attribute to true
<asp:TextBox ID="TextBox1" AutoPostBack="true" runat="server"></asp:TextBox>
Now the autpostback works well.
2. In the Page_Load method add something to the TextBox's onchange attribute
TextBox1.Attributes["onchange"] = "alert('onchange!');";
Now the autpostback doesn't work any more. The HTML produced for the textbox is
the following:
<input id="TextBox1" onchange="alert('onchange');" type="text" onkeypress="if
(WebForm_TextBoxKeyHandler(event) == false) return false;"
onchange="__doPostBack('TextBox1','')" name="TextBox1" />
As you can see, there are two onchange attributes, but only the first is
executed, thus the postback isn't performed.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs