thx for responding.
while trying to make it work, i attempted to do it all within the aspx file, but did not succeed. i want to bind my asp:dropdownlist to Session("AllGroups"), a one-dimensional array. here's my code that raised an error:
the html code:
<tr><td>
<asp:label for="selGroups">Select your default group:</asp:label>
<asp:dropdownlist id="selGroups" runat="server">
</asp:dropdownlist></td></tr>
<tr><td style="line-height:20px;"> </td></tr>
<tr><td><asp:label for="selForums">Select your default forum:</asp:label>
<asp:dropdownlist id="selForums" runat="server">
<asp:listitem>Network</asp:listitem>
<asp:listitem>Social</asp:listitem>
</asp:dropdownlist></td></tr>
the runtime binding code is:
<script language="
VB" runat="server">
...
Sub Page_Load()
selGroups.DataSource=Session("AllGroups")
selGroups.DataBind()
selForums.DataSource=Session("AllGroups")
selForums.DataBind()
End Sub