Author: outerringz | Posted on: 9/9/2009 12:50:48 PM | Views : 946

I'm am working on an asp.net C# project where I'm trying to pass basic authentication credentials to a site programmatically, then display the authenticated page in an iFrame. The programmatic authentication is working, but I can't figure out how to, or if it's even possible to link that session to an iFrame. Here is what I have so far:
HttpWebRequest Request = (HttpWebRequest)WebRequest.Create("https://siteaddress");
Request.AllowAutoRedirect = false;
Request.Credentials = new System.Net.NetworkCredential("username", "password");
HttpWebResponse Response = (HttpWebResponse)Request.GetResponse();
I don't know if this is even possible, but any help anyone can provide that gets me closer, or confirms this isn't possible, is appreciated.

...

Go to the complete details ...