By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,910 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,910 IT Pros & Developers. It's quick & easy.

C# and AxSHDocVw - Microsoft Web Browser Control

P: n/a
Does anyone know how to get the full URL filename from a Microsoft Web
Browser control? I can use wbBrowserObj.LoctionURL to get the path but it
seems to be missing the file name... I need the specific filename that a
person browses to using the web browser control.

Thanks,
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I think you just need to capture the DocumentComplete event, and then the
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent has the complete url as an
object... code below...

private void axWebBrowser1_DocumentComplete(object sender,
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
string theUrl = e.uRL.ToString();
}

this is of course if your using an active x control of the web browser and
not .net 2.0's built in control, although I do think the idea will be the
same for both...

"eXtreme" wrote: Does anyone know how to get the full URL filename from a Microsoft Web
Browser control? I can use wbBrowserObj.LoctionURL to get the path but it
seems to be missing the file name... I need the specific filename that a
person browses to using the web browser control.

Thanks,


Nov 17 '05 #2

P: n/a
I'm still using .NET 1.1... would be nice to have the .NET browser control.

"Andy Johnson" <An*********@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
I think you just need to capture the DocumentComplete event, and then the
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent has the complete url as
an
object... code below...

private void axWebBrowser1_DocumentComplete(object sender,
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
string theUrl = e.uRL.ToString();
}

this is of course if your using an active x control of the web browser and
not .net 2.0's built in control, although I do think the idea will be the
same for both...

"eXtreme" wrote:

Does anyone know how to get the full URL filename from a Microsoft Web
Browser control? I can use wbBrowserObj.LoctionURL to get the path but
it
seems to be missing the file name... I need the specific filename that a
person browses to using the web browser control.

Thanks,

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.