如何:获取Internet Explorer的当前URL [英] How To: Get current url of Internet Explorer

查看:71
本文介绍了如何:获取Internet Explorer的当前URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,朋友们



我正在使用加载快递为IE开发插件。我需要一种方法来获取此开发环境中IE的当前URL。有没有人知道这件事?请帮帮我。



谢谢。

解决方案

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



这可能会有所帮助。



谢谢:)


 webBrowser1.Navigating + =  new  WebBrowserNavigatingEventHandler(webBrowser1_Navigating); 
}
private void webBrowser1_Navigating( object sender,
WebBrowserNavigatingEventArgs e)
{
textbox1.Text = e.Url.ToString();
// 而不是textbox1.text,您可以使用您的实例
}


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.

解决方案

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


May be this might help.

Thanks :)


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
        }


这篇关于如何:获取Internet Explorer的当前URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆