You can’t close the tag before you include the list items.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Sunday, October 23, 2005 1:10 PM
To: Mono-list@lists.ximian.com
Subject: [Mono-list] asp:DropDownList not working (not populating)

 

Hi all,

 

Can anybody tell me if this is a bug.  I have a simple test page that only contains a DropDownList.  I cannot get it to populate selections by using ListItem.  See below:

 

<%@ Import namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="ByteFX.Data.MySqlClient" %>
<%@ Import Namespace="System.Security.Cryptography" %>
<%@ Import Namespace="System.Configuration" %>
<%@ Assembly name="ByteFX.Data" %>
<%@ Page Language="C#" %>

<HTML>
<HEAD>Test</HTML>
<body>
<form id="x" runat="server">
<P>
<asp:DropDownList id="ddlBufferType" runat="server"/>
               <asp:ListItem value="0">N</asp:ListItem>
               <asp:ListItem value="1">B</asp:ListItem>
               <asp:ListItem value="2">C</asp:ListItem>
</asp:DropDownList>
</P>
</form>
</body>
</html>

<script runat="server">

</script>

The result is a narrow, dropdownlist with no selections.  I would expect to see N, B, and C as selection options.  I also tried putting N, B, and C in the value= and text= but get the same results.  If anyone can help, please let me know.  I am using Mono-1.1.9.2 on Mandriva 10.2 Linux.

 

Thanks,

JL

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to