[RESOLVED] how to read the value of a html generated text box

liunx

Guest
hi all,
I am generating a asp page using this html....and i created a textbox using that...i want to get/read the value of the textbox...but i am not able to do it

context.Response.Write(" <html><body>");
context.Response.Write("<form method = 'post'>");
context.Response.Write("<input name='tflag' id='tflag' value='" +context.Request.Path + " ' type='text' size='15'/>");
context.Response.Write("</form><br>");
context.Response.Write(" <html><body>");

string s = context.Request.Form["tflag"]; //i am trying to read the value of textbox using this...but it is not working....the string 's' is always null.

Can someone help me with this.
Thanks,
sushTry with just

s = request.form("tflag")hi,
i wrote this code for a httpmodule ...so i should use the contextOh, I think it must be ASP.NET. I'm sorry. I can't help much because I'm also a beginner for ASP.NET.

Hope someone else can help you.hi ,
its working fine :)
silly me ...

thanks,
sush
 
Top