Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Open remote url webpage with Basic authentication by asp.net,

I have done code like

InternetExplorer IEControl = new InternetExplorer();
IWebBrowserApp webBrowserCtl = (IWebBrowserApp)IEControl;
string strAuthenticationHeader = "Authorization: Basic " + Convert.ToBase64String(Encoding.Default.GetBytes(username + ":" + password)) + "\r\n";
webBrowserCtl.Visible = true;
webBrowserCtl.Navigate(**url**, null, null, null, strAuthenticationHeader);

which allowing me to open page in internet explorer only and in new webpage, I want it to support on all browsers and page should navigate to new url in same web page

Can any one help...????
Posted
Updated 7-Aug-13 2:53am
v2

1 solution

I guess you need to really go back to the design board and decide what you want to do.

Are you seriously creating InternetExplorer object on server in ASP.Net? That would never work and does not make sense at all.
 
Share this answer
 
Comments
hasmukhsumra2005 7-Aug-13 9:28am    
Creating object of InternetExplorer is possible with SHDocVw interface, for this we need dll reference

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900