J
Jessica Weiner
I have an input field defined outside the <form> area. Its a simple html
text input that is used to enter the number of hours.
<input id="HoursField" name="hours" type="text" />
I want to access this field from the server side (c# code). I tried these
two methods to access the field but they dont work. Please help.
String[] tempArray;
tempArray = Request.Form.GetValues("hours");
Response.Write (tempArray[0]);
---
string val = Request.QueryString["hours"].ToString();
Response.Write (val);
Jessica
text input that is used to enter the number of hours.
<input id="HoursField" name="hours" type="text" />
I want to access this field from the server side (c# code). I tried these
two methods to access the field but they dont work. Please help.
String[] tempArray;
tempArray = Request.Form.GetValues("hours");
Response.Write (tempArray[0]);
---
string val = Request.QueryString["hours"].ToString();
Response.Write (val);
Jessica