Mehyar Posted November 6, 2003 Posted November 6, 2003 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, Quote Dream as if you'll live forever, live as if you'll die today
Moderators Robby Posted November 6, 2003 Moderators Posted November 6, 2003 This task can be best handled by a Web Service. Quote Visit...Bassic Software
Mehyar Posted November 7, 2003 Author Posted November 7, 2003 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, Quote Dream as if you'll live forever, live as if you'll die today
Moderators Robby Posted November 7, 2003 Moderators Posted November 7, 2003 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. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.