Reputation: 48686
I need some help with ASP.NET.
I have an html page that has a form tag with a couple of input tags and I want to do a Post.
Now on the server, I'm implementing IHTTPHandler. I get the response, but i don't see my input data.
How can i get what the user types in into the input tags in the http handler. I was able to do this before. But now i can't find where in the context object the results are.
Upvotes: 1
Views: 1942
Reputation: 21117
<input type="text" name="txtId"></input>
public void ProcessRequest(HttpContext context)
{
var element = context.Request["txtId"];
}
Upvotes: 0
Reputation: 2982
try Request["Tag's Name"] so for example to get the value from
<input type="text" name="firstname"></input>
use
Request["firstname"]
in your code behind.
Upvotes: 1