Hi
I'm trying to write a toolbar in c#
I need to know how can I get the address from the address bar in the active IE window?
and also - how to set the address from the address bar in the active IE window?
Thanks .
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
paiha paigaPosted Oct 30, 2008, 8:15 AM
Just try it below if yet it's not working then write the code whatever you are using.
using
System;using
System.Data;using
System.Configuration;using
System.Web;using
System.Web.Security;using
System.Web.UI;using
System.Web.UI.WebControls;using
System.Web.UI.WebControls.WebParts;using
System.Web.UI.HtmlControls;public
partial class _Default : System.Web.UI.Page{
protected void Page_Load(object sender, EventArgs e){
string getURL= Request.Url.ToString();}
}
lior coPosted Oct 30, 2008, 8:04 AM
The name 'Request' does not exist in the current context
paiha paigaPosted Oct 30, 2008, 5:12 AM
you can get the address bar url by following code for example as below
string getURL = Request.Url.ToString();