|
-
Nov 23rd, 2006, 05:05 PM
#1
Thread Starter
Lively Member
Please Help, Web browser control problems.
I have my web browser control automatically filling out a series of online forms for me online, and when it is complete, it starts over again.
I get through about 3 cycles of this, and then the webpage in the browser control goes to a "the page cannot be displayed" page.
This totally screws up my program and makes it stop filling out the forms.
im fairly new to programming, and i'm not sure how to fix this problem.
what are some potential solutions?
i've tried this code
VB Code:
If InStr(1, ssource, "You might not have permission") > 0 Then
step = step - 1
Clipboard.SetText pasturl
WebBrowser1.Navigate pasturl
End If
but it doesnt seem to be working.
any ideas would be awesome.
-
Nov 23rd, 2006, 05:14 PM
#2
Re: Please Help, Web browser control problems.
Does the page acutally exist that you are attempting to load?
-
Nov 23rd, 2006, 05:22 PM
#3
Re: Please Help, Web browser control problems.
 Originally Posted by claytrainor
VB Code:
If InStr(1, [B]ssource[/B], "You might not have permission") > 0 Then
'...
What is ssource? Where are you getting that value from?
-
Nov 23rd, 2006, 05:44 PM
#4
Re: Please Help, Web browser control problems.
Also, what is "step" and what is it used for (what are your intentions) and what is "pasturl"?
-
Nov 23rd, 2006, 05:53 PM
#5
Thread Starter
Lively Member
Re: Please Help, Web browser control problems.
okay... thanks for the responses
ssource is the html code for the web page displayed in the browser.
pasturl is the last url that was visited, it's basically another way of telling the browser to go back.
and the code is divided into 5 steps... because there are five pages of forms to fill out... each step is code meant for another page.
-
Nov 23rd, 2006, 06:31 PM
#6
Thread Starter
Lively Member
Re: Please Help, Web browser control problems.
dont worry about it dudes, thanks anyways.
found an alternative method
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|