Get return value sent by web-site

  • Thread starter Thread starter ebiweb
  • Start date Start date
E

ebiweb

We construct url and supply to web browser throuch C# application. We
need to capture the return value sent by web-site for validation
purpose.

For example, we have constructed the url as "http://www.example.com/
services/register.aspx?Use rname=Admin&password=pwd" and pass it to
web browser. Browser will display some value after sending this. How
do we get the value in the C# Application .i use C# 2005.

Thans in advance
 
We construct url and supply to web browser throuch C# application. We
need to capture the return value sent by web-site for validation
purpose.

For example, we have constructed the url as "http://www.example.com/
services/register.aspx?Use rname=Admin&password=pwd" and pass it to
web browser. Browser will display some value after sending this. How
do we get the value in the C# Application .i use C# 2005.

Thans in advance



help plz.no answer? :(
 
We construct url and supply to web browser throuch C# application. We
need to capture the return value sent by web-site for validation
purpose.

For example, we have constructed the url as "http://www.example.com/
services/register.aspx?Use rname=Admin&password=pwd" and pass it to
web browser. Browser will display some value after sending this. How
do we get the value in the C# Application .i use C# 2005.

Thans in advance

help plz.no answer? :(

42!

If you want a more detailed answer, I think you need to provide a little
more information on what you are trying to accomplish.

- Michael Starberg
 
help plz.no answer? :(

Well the browser usually renders an HTML document. That might have
complex contents like lists or paragraphs or tables. It is not clear
what exactly you want to do in that case.
If you simply want to make a HTTP request and get the result as a string
then try whether the DownloadString method of System.Net.WebClient does
what you want:
http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx
http://msdn.microsoft.com/en-us/library/system.net.webclient.downloadstring.aspx
 
Back
Top