Paula Mansour

I want get the URL of the current iexplore

I can get the process using the folowing code

Process[] process = Process.GetProcesses();

foreach (Process pr in process)

{

if (pr.ProcessName == "iexplore")

// Her I want code to get the URL ,,, how

}




Re: Internet Explorer Extension Development how to get the curent url of iexplore process

Lalitha Vasireddy

Hi,

Can you try with the below line of code to get the URL

Request.Url.ToString()

Thanks,

Lalitha





Re: Internet Explorer Extension Development how to get the curent url of iexplore process

Paula Mansour

you seem not understand my question

I want my windows application to get the url of the internet explorer

The folowing code get the title of the internet explorer that's good but I want the URL !!!

string result = "", browser = "iexplore" ;

Process[] aProcess = Process.GetProcesses();

foreach (Process pr in aProcess)

{

if (pr.ProcessName == browser || pr.ProcessName == browser.ToUpper())

result = pr.MainWindowTitle; // I want get the url not the title !!!

}

any help please






Re: Internet Explorer Extension Development how to get the curent url of iexplore process

Paula Mansour

up






Re: Internet Explorer Extension Development how to get the curent url of iexplore process

OmegaMan

Paula Mansour wrote:

up



No need to repost Paula...check out my blog entitled, Access Explorer and Internet Explorer in C# which shows how to get the Url from IE 7 as well as the hard drive location from Explorer.