How to get the Hidden Text Box value using 2.0
-
Hi, I am using VS.NET 2005, in my webform1 im storing some value in Hidden Text Box using java script. Now from Server side code I am used to acces with following code.
string str = Request.Form["Hidden1"];
but this str is always showing null. Here Hidden Control is storing the properly, but is unable to get from severside code. Is there any other way to access the Hiddent control value? Earlier VS.2003 it is worked fine. problem with 2005? plz help ASAP? regards GV Ramana -
Hi, I am using VS.NET 2005, in my webform1 im storing some value in Hidden Text Box using java script. Now from Server side code I am used to acces with following code.
string str = Request.Form["Hidden1"];
but this str is always showing null. Here Hidden Control is storing the properly, but is unable to get from severside code. Is there any other way to access the Hiddent control value? Earlier VS.2003 it is worked fine. problem with 2005? plz help ASAP? regards GV RamanaNeed more information, is the hidden field a server control or ordinary html hidden field. If its a server control you should be able to access it as normal string str = Hidden1.Text; if the field is not a server control then make sure the hidden field tags name attribute is Hidden1 -- modified at 15:05 Friday 27th January, 2006 Corrrection: string str = Hidden1.Value; regards Fluxtah
-
Need more information, is the hidden field a server control or ordinary html hidden field. If its a server control you should be able to access it as normal string str = Hidden1.Text; if the field is not a server control then make sure the hidden field tags name attribute is Hidden1 -- modified at 15:05 Friday 27th January, 2006 Corrrection: string str = Hidden1.Value; regards Fluxtah
Thx fluxtah, OK, I am taken html hidden control, I forgot to give the Name of it. regards GV Ramana