G
G
Hello,
I have a c# ASPX file, and a Code Behind file.
This file has contents POSTED to it, around 15 form fields. Rather than
manually catch each Request.Form["TextBoxID"] - is there an easy way to
simply create a loop which does the following:
1: Look for ALL posted form fields
2: Create a list of variables, one for each form element - Name the
variables varFormField1, varFormField2, varFormField3 and so on
3: Populate each variable with a form field, TextBox1 populates
varFormField1, TextBox2 populates varFormField2 etc.
Any help appreciated. This is my first .net project and it's a biggy.
Hurting my head
G.
I have a c# ASPX file, and a Code Behind file.
This file has contents POSTED to it, around 15 form fields. Rather than
manually catch each Request.Form["TextBoxID"] - is there an easy way to
simply create a loop which does the following:
1: Look for ALL posted form fields
2: Create a list of variables, one for each form element - Name the
variables varFormField1, varFormField2, varFormField3 and so on
3: Populate each variable with a form field, TextBox1 populates
varFormField1, TextBox2 populates varFormField2 etc.
Any help appreciated. This is my first .net project and it's a biggy.
Hurting my head
G.