PDA

View Full Version : c# Request.Forms access


shrewsburyprop
06-24-2008, 01:01 PM
Hi

I am trying to create an asp.net page in c# that can be called by another non asp.net page via a post from a form.

I will then need to access the various fields on the form and I am finding it unclear on how this acheived. There seem to be methods for getting a value pair via their index number but nothing for getting a value dependent upon the element name.

thx

Basscyst
06-24-2008, 10:19 PM
Should be able to access it by name in the same way as by index:


String firstName = Request.Form["first_name"];


Basscyst