Thanks a 1,000,000 Ken.
You have officially become my hero.
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
news:erkJ5QhHFHA.3336@TK2MSFTNGP10.phx.gbl...
> Hey Chuck,
>
> It looks like you're taking too many shortcuts. Here's some code that
works
> for me. Does it work for you?
>
> Ken
> Microsoft MVP [ASP.NET]
>
>
> <%@ Page Language="vb" AutoEventWireup="true" %>
> <%@ Import namespace="System.Collections" %>
> <%@ Import namespace="Microsoft.VisualBasic" %>
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html>
> <head>
> <title>arraylstscript</title>
> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
> <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
> <meta name="vs_defaultClientScript" content="JavaScript">
> <meta name="vs_targetSchema"
> content="
http://schemas.microsoft.com/intellisense/ie5"> > <script runat='server' language="vb">
> Private Sub Page_Load _
> (ByVal sender As System.Object, _
> ByVal e As System.EventArgs)
>
> dim Samples as New ArrayList()
> Samples.Add("1")
> Samples.Add("2")
> Samples.Add("3")
> Samples.Add("4")
> Samples.Add("5")
> Samples.Add("6")
> Samples.Add("7")
> Samples.Add("8")
> Samples.Add("9")
> Samples.Add("10")
> Samples.Add("11")
> Samples.Add("12")
> Samples.Add("13")
> Samples.Add("14")
> Samples.Add("15")
> Samples.Add("16")
> Samples.Add("17")
> Samples.Add("18")
> Samples.Add("19")
> Samples.Add("20")
> Samples.Add("21")
> Samples.Add("22")
> Samples.Add("23")
> Samples.Add("24")
> Samples.Add("25")
> Samples.Add("26")
> Samples.Add("27")
> Samples.Add("28")
> Samples.Add("29")
> Samples.Add("30")
>
> DropDownList1.DataSource = Samples
> DropDownList1.DataBind()
> end sub
>
> </script>
> </head>
> <body MS_POSITIONING="FlowLayout">
> <form id="Form1" method="post" runat="server">
> <asp:dropdownlist id="DropDownList1"
> runat="server"></asp:dropdownlist>
> </form>
> </body>
> </html>
>