求助高人指点:WebBrowser.NewWindow 事件

 想用WebBrowser.NewWindow 事件获取JS中的URL代码如下:

private void OpenPage(String Url)

{
string strJS = "<script>"
+ " window.open('" + Url + "');";
strJS = strJS + "</script>";
ClientScript.RegisterStartupScript(this.GetType(), "key1", strJS);
}
protected void IBtnZXB_Click(object sender, ImageClickEventArgs e)
{ OpenPage("../login.aspx");
}
我怎么用WebBrowser.NewWindow 事件获取到../login.aspx这个地址进行临时浏览器定向到新的url。用((WebBrowser)sender).StatusText获取貌似获取不到URL

posted on 2009-11-17 09:53  洛忆  阅读(1859)  评论(3编辑  收藏  举报

导航