|
-
Aug 14th, 2003, 03:53 AM
#1
Thread Starter
Lively Member
Webbrowser URL
Hi,
I want to be able to capture the URL of the webpage a user has gone to in my webbrowser control. I can do that easy enough by doing:
AxWebBrowser1.LocationURL.ToString
when its a typical webpage.
However some webpages that the user will be going to have a different URL (shown in the address bar) to what the actual actual URL is of the webpage.
EG.
A link on a website points to the following URL:
https://www.mywebsite.com/logon/Tran...x?CID=91&SID=2
(which is shown in the status bar when the mouse hovers over the link)
when you actually go to that webpage the URL in the address bar is:
https://www.mywebsite.com/logon/reports
I want to be able to get the "https://www.mywebsite.com/logon/Transfer.aspx?CID=91&SID=2" URL, not the other one which is brought back by:
AxWebBrowser1.LocationURL.ToString
because it is this URL that will take you to that webpage not 'https://www.mywebsite.com/logon/reports' which will not take you anywhere.
Does anyone know how I could do this?
-
Aug 14th, 2003, 04:14 AM
#2
Fanatic Member
if you call he box for the url txtUrl and then havea list caled lstBeenTo you could do
VB Code:
Timer1_Enabled
lstBeenTo.additem = txtUrl.text
C#.net, VB, C++, Java, VS 2005/2008
Dont' forget to rate posts that are helpful to you.
-
Aug 14th, 2003, 04:36 AM
#3
Thread Starter
Lively Member
Cheers but I don't think that really helps, unless I don't get what you mean.
I need to know how to get the URL in the first place because it seems that:
AxWebBrowser1.LocationURL.ToString
will only give me
https://www.mywebsite.com/logon/reports
(the url in the address bar)
not
https://www.mywebsite.com/logon/Tra...px?CID=91&SID=2
(the actual url shown in status bar when use hovers ovver the link)
Cheers anyway
Any of you guys got any more ides
-
Aug 14th, 2003, 06:36 AM
#4
Fanatic Member
I remember there's an AddressBar property in webbrowser
u might try playin' wif that
Or how about when the NavigateComplete event is fired,
u get the URL by WebBrowser.LocationURL
Or how about during BeforeNavigate event, u can get the
URL through the URL parameter
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
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
|