Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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,

Dream as if you'll live forever, live as if you'll die today
Posted

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,

Dream as if you'll live forever, live as if you'll die today
  • Moderators
Posted

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.

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...