[Mono-bugs] [Bug 76785][Maj] New - When the data to bind is inside
an event of a HtmlControl, it is not bound correctly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Nov 22 06:21:26 EST 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 haop at immediacy.co.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=76785
--- shadow/76785 2005-11-22 06:21:26.000000000 -0500
+++ shadow/76785.tmp.4109 2005-11-22 06:21:26.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 76785
+Product: Mono: Runtime
+Version: 1.1
+OS: other
+OS Details: RedHat Enterprise Linux 4
+Status: NEW
+Resolution:
+Severity: 160 One month
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: haop at immediacy.co.uk
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: When the data to bind is inside an event of a HtmlControl, it is not bound correctly
+
+Description of Problem:
+<%# %> is not interpreted correctly when binding data
+
+Steps to reproduce the problem:
+1. In the .aspx page, add a HtmlControl
+
+<input type="button" id="edit" onclick='<%# JavascriptFunc %>'
+value="Edit" runat="server" NAME="Edit">
+
+2. In the code-bind, define the property JavascriptFunc, and bind the data
+
+ protected string JavascriptFunc
+ {
+ get
+ {
+ return "doSomething()";
+ }
+ }
+
+ private void Page_Load(object sender, System.EventArgs e)
+ {
+ DataBind();
+ }
+
+3. View the page
+
+Actual Results:
+javascript error. The rendered code is:
+<input name="edit" id="edit" type="button" value="Edit" onclick="<%#
+JavascriptFunc %>" />
+
+Expected Results:
+
+<input name="edit" id="edit" type="button" value="Edit"
+onclick="doSomething()" />
+
+How often does this happen?
+Always
+
+Additional Information:
More information about the mono-bugs
mailing list