Calling an ASP page from VB
-
I have a problem in that I am trying to call an asp page from a VB application. I have set-up a Web Browser control and use the Navigate method to run specific web pages. On the Web Browser control I have a toolbar with a Logout button. When this Logout button is clicked on, it calls an ASP page called logout.asp using the Navigate method, which is resident on the web server. This in turn will then put an entry in a log file of the user name about to be logged off, taken from the Session variable. The call to the asp page then returns to the VB application and runs the method Form Unload, to close down the Web browser and thus log off the user. The problem I have is that if I call the Form Unload as the next command after the call to the ASP page the logout.asp page does not seem to run. If I remove the call to Form Unload the call to the logout.asp page works correctly and I get an entry in the log file resident on the Web server. Can anyone shed some light on why this is happening. Simes