Click here to Skip to main content
15,936,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all.,

i have a problem with asp .net weResponse.

i am building application that accept the HttpWebRequest from some other application. That will calculate all the calculations and returns the some value to that requested application. I done it but that receiving application, receiving all the html content including the result. I want to return only that generated value.

how do i do that to return only that calculated value to the requested application..??

Sandeep Mewara 28-Apr-12 4:32am    
It would be good if you eidt your question and add your return response code.

1 solution

WebRequest request = WebRequest.Create("url"); //url pass gere
WebResponse response = request.GetResponse();
Stream receiveStream = response.GetResponseStream();
StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
string responseText = readStream.ReadToEnd();
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900