Hello needanswer,
I am guessing that everyone is having a hard time understanding your question because there have been 73 views and no responses. I am going to try to provide an answer to what I believe you’re asking. If I am way off please post a reply and add more detail to your question in what you’re trying to do.
I think you’re asking if you can save values from multiple controls within a form on a post back. An example would be:
-
<form id="form1" runat="server">
-
<div>
-
<asp:TextBox ID="TextBox1" runat="server" />
-
<asp:DropDownList ID="DropDownList1" runat="server">
-
<asp:ListItem Text="First Option" Value="1" />
-
<asp:ListItem Text="Second Option" Value="2" />
-
</asp:DropDownList>
-
<asp:Button ID="Button1" runat="server" Text="Submit" />
-
</div>
-
</form>
-
If I am correct in what you’re asking for help with then using the above example you could do something like this:
-
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
-
Dim TextBoxValueToSave As String = TextBox1.Text
-
Dim DropDownListValueToSave As String = DropDownList1.SelectedItem.Value
-
End Sub
-
Here you can see that two controls within a form are save within variables that can be used how ever you with to use them.
Hope this helps,
CroCrew~