Imhaving trouble trying to grasp a few things, but the problem im facing @ the moment is trying to display a drop down menu on a select case
following code...
<script language="vb" runat="server">
Sub Page_Load()
If Page.IsPostBack Then
Select Case(number.SelectedItem.Value)
Case "1":
Message.Text = "<asp:dropdownlist id='list1' runat='server'>" & _
"<asp:listitem>7</asp:listitem>" & _
"<asp:listitem>8</asp:listitem>" & _
"<asp:listitem>9</asp:listitem>" & _
"</asp:dropdownlist>"
Case "2":
Message.Text = "hello2"
Case "3":
Message.Text = "hello 3"
Case else
Message.Text = "0000"
End Select
End If
End Sub
</script>
<form runat="server">
Select your choice:
<br><br>
<asp:radiobuttonlist id="number" runat="server">
<asp:listitem>1</asp:listitem>
<asp:listitem>2</asp:listitem>
<asp:listitem>3</asp:listitem>
</asp:radiobuttonlist>
<br><br>
<input type="submit" value="Submit Choice">
<br><br>
<asp:label id="message" runat="server"/>
</form>
the code works, but if you choose case 1 it does not display a drop down menu it will just write "789" any help with this matter would be a great help.