Http post [modified]
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi all, I am trying to get the following input data using http post .
i have my asp.net Page reading the data as : if (Request.QueryString\["customer\_fname"\] != null) fname = Request.QueryString\["customer\_fname"\]; the value of fname is test.However,Its alwyas having a null string. IS it not getting the http post for the above html? Can any one advice Please? Thank you in advance
modified on Tuesday, June 23, 2009 7:10 PM
-
Hi all, I am trying to get the following input data using http post .
i have my asp.net Page reading the data as : if (Request.QueryString\["customer\_fname"\] != null) fname = Request.QueryString\["customer\_fname"\]; the value of fname is test.However,Its alwyas having a null string. IS it not getting the http post for the above html? Can any one advice Please? Thank you in advance
modified on Tuesday, June 23, 2009 7:10 PM
Hidden field, use Request.Form instead:
string fname = "";
if (Request.Form["customer_fname"] != null)
{ fname = Request.Form["customer_fname"]; }
Response.Write("fname value: " + fname);Regards, Gary