HttpWebRequest and HttpWebResponse

  • Thread starter Thread starter sridev
  • Start date Start date
S

sridev

hi all,


i have a c# application.In that i am using the httpwebrequest and
httpwebresponse class to send request and to get the response.

In the uri i am directing it to a aspx page.In the aspx page i
have generated an xml file.And using the two classes i am getting the
result perfectly.What i want to know is that if i get any exception in
that aspx page means, whether the exception will be seen in the
response which is in c# application.If we can do means how to do that
plz explain with example...............

Thanking you in advance

with regards,
sridev
 
Hi,
What you really want to use is web services.
Anyway, you can catch any exception and reply with xml containing the
exception info.
Sharon.
 
Back
Top