Basic authentication using asp.net
Open 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 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...????
No comments:
Post a Comment