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 .
Get the url
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

paiha paiga45 reputationPosted Oct 30, 2008, 1:12 AM EDT
you can get the address bar url by following code for example as below
string getURL = Request.Url.ToString();lior co5 reputationPosted Oct 30, 2008, 4:04 AM EDT
The name 'Request' does not exist in the current context
paiha paiga45 reputationPosted Oct 30, 2008, 4:15 AM EDT
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();}
}