[Mono-bugs] [Bug 327816] New: duplicated onchange attribute in TextBox with AutoPostback
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Sep 24 10:51:33 EDT 2007
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: mhabersack at novell.com
ReportedBy: g.tardini at caleidoscopio.it
QAContact: mono-bugs at ximian.com
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.
More information about the mono-bugs
mailing list