[Mono-list] asp:DropDownList not working (not populating)

Timothy Graupmann tgraupmann at yahoo.com
Sun Oct 23 14:31:01 EDT 2005


Shouldn't you be using asp:ListBox ?

--- johnlopezj at aol.com wrote:

> 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 at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


More information about the Mono-list mailing list