Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, friends

I am developing addon for IE using add-in express. I need a way to get current url of IE in this development environment. Is there anyone who knows about this? Please help me.

Thank you.
Posted

HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority + HttpRuntime.AppDomainAppVirtualPath 

May be this might help.

Thanks :)
 
Share this answer
 
C#
webBrowser1.Navigating +=new WebBrowserNavigatingEventHandler(webBrowser1_Navigating);
        }
        private void webBrowser1_Navigating(object sender,
    WebBrowserNavigatingEventArgs e)
        {
            textbox1.Text = e.Url.ToString();
//instead of textbox1.text you may use your instance
        }
 
Share this answer
 
Comments
future2015 18-Sep-14 3:34am    
hello, thank for your answer. Can I use it for adx?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900