WebRequest

Mehyar

Junior Contributor
Joined
Jun 9, 2003
Messages
371
Location
Lebanon
Hello All,

I though about posting this in the windows form section but i the question is about webrequest. So, I have a form in which I need to call a web form (aspx). This web form in its page load will reset some fields in a database.

Now I call the webform using WebRequest

Dim hwr as HttpWebRequest = Ctype(WebRequest.Create('the url of the webform'), HttpWebRequest)

Is this enough to trigger the webform and make it execute its code.

If not what should i do ??

Many Thanks in Advance,
 
Thank you Robby for the reply, but Did you mean that the windows application will call the web service which in turn will call the web form ? Or what you meant is use a web service to reset the fields in the database ?

If it is the first case then please instruct how can i invoke the web page from the web service (is it web request, anything else) ...

If it is the second case, then I am afraid I cant because I have to use that web form.

Thx in advance,
 
My thought was to do all the DB updates from a web service, but you can still do it all from a web form.

What I don't get is why you want a Windows form to call a Web form in order to update the DB.
 
Back
Top