[Mono-bugs] [Bug 48668][Maj] New - ListControl - OnDataBinding bug (A fix is provided)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Sep 2003 05:11:47 -0400 (EDT)
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 yaronsh@mainsoft.com.
http://bugzilla.ximian.com/show_bug.cgi?id=48668
--- shadow/48668 2003-09-21 05:11:47.000000000 -0400
+++ shadow/48668.tmp.6593 2003-09-21 05:11:47.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 48668
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: yaronsh@mainsoft.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ListControl - OnDataBinding bug (A fix is provided)
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+Format string for Data binding for list control based classes is not
+functional.
+
+Steps to reproduce the problem:
+1. Open the attached aspx file
+2. Click the test button
+
+Actual Results:
+The data (only) from the attached XML file appears in the Drop Down List.
+
+Expected Results:
+Each raw has to appear in the following format: "Name= <Wroker name from
+the XML>"
+
+How often does this happen?
+Always
+
+Additional Information: (Notice that a fix in Diff format is attached!)
+
+<%@ Page language="c#" AutoEventWireup="false" %>
+<%@ Import Namespace="System.Data" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+ <HEAD>
+ <script runat="server" language="C#">
+ private void BtnTest_Click(object sender, System.EventArgs e)
+ {
+ DataSet ds = new DataSet();
+ ds.ReadXml( Server.MapPath( "TestDB.xml" ) );
+ DropDownList1.DataSource = ds;
+ DropDownList1.DataTextField = "Name";
+ DropDownList1.DataTextFormatString = "Name = {0}";
+ DropDownList1.DataBind();
+ }
+ </script>
+ </HEAD>
+ <body>
+ <form id="Form1" method="post" runat="server">
+ <asp:DropDownList id="DropDownList1" runat="server"
+ Width="352px"></asp:DropDownList>
+ <asp:Button id="BtnTest" OnClick="BtnTest_Click"
+ runat="server" Text="Test"></asp:Button>
+ </form>
+ </body>
+</HTML>