[Mono-list] asp:DropDownList not working (not populating)
Carl Olsen
carl at carl-olsen.com
Sun Oct 23 20:59:56 EDT 2005
You can't close the tag before you include the list items.
_____
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of johnlopezj at aol.com
Sent: Sunday, October 23, 2005 1:10 PM
To: Mono-list at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20051023/aebcaa47/attachment.html
More information about the Mono-list
mailing list