Form and C# ASP.NET page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

All,

I have a .htm form that contains two text boxes and a submitt button that
does a form post to a ASP.NET webform and I would like to know how I can
extract the values entered in the text box using ASP.NET with C#.

Thanks
Msuk
 
Request["FormFieldName"]

i.e. in the Page_Load of the ASP.NET page:

string tbValue1 = Request["txtBox1"];
string tbValue2 = Request["txtBox2"];

where txtBox1 and txtBox2 are the names of the fields on the form.

HTH
Sam
 
Hi,

That worked a treat thanks for your help :-)

Sam Martin said:
Request["FormFieldName"]

i.e. in the Page_Load of the ASP.NET page:

string tbValue1 = Request["txtBox1"];
string tbValue2 = Request["txtBox2"];

where txtBox1 and txtBox2 are the names of the fields on the form.

HTH
Sam

msuk said:
All,

I have a .htm form that contains two text boxes and a submitt button that
does a form post to a ASP.NET webform and I would like to know how I can
extract the values entered in the text box using ASP.NET with C#.

Thanks
Msuk
 
Back
Top