[Mono-list] asp:DropDownList not working (not populating)
johnlopezj at aol.com
johnlopezj at aol.com
Sun Oct 23 14:09:53 EDT 2005
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20051023/fb4222f3/attachment-0001.html
More information about the Mono-list
mailing list