Read ASP Post data in ASP.NET Page

  • Thread starter Thread starter Atul Shukla
  • Start date Start date
A

Atul Shukla

Hi,

I dont know if this is weird requirement, but one of my customer wanted to
POST data from their ASP page on to another ASP.NET web service page.

Now I am thinking how to read the POSTed data from web service.

In ASP world, when data is posted to page2.asp, in page2.asp, we do
something like:
Request.Form[0] to read the data. I am wondering how can it be done in
ASP.NET web service. Does it have anything similar?

Any pointers would be great help.
Thanks
Atul
 
Never mind, got the solution by using
HttpContext context = HttpContext.Current;
And then
string data = context.Request.Form[0];

Thanks
Atul
 
Back
Top