|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
names need to be stored in an array then posted
I need names need to be stored in an array after pressing the bntstore, then posted in a listbox
after pressing btndisplay I've tried everything and can't figure it out. I'm new at this! <%@ Page Language="VB" debug ="True" %> <script runat="server"> Sub btnstore_Click(sender As Object, e As EventArgs) End Sub Sub btndisplay_Click(sender As Object, e As EventArgs) lstNames.items.add(txtname.text) End Sub </script> <html> <head> </head> <body> <form runat="server"> <p> Insert Name: <asp:TextBox id="txtname" runat="server"></asp:TextBox> </p> <p> <asp:Button id="btnstore" runat="server" Text="Store Name"></asp:Button> </p> <p> <asp:Button id="btndisplay" onclick="btndisplay_Click" runat="server" Text="Display Name"></asp:Button> </p> <p> <asp:ListBox id="lstNames" runat="server"></asp:ListBox> </p> </form> </body> </html>Bottom of Form |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > names need to be stored in an array then posted |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|