Thanks.
I am thinking whether I can perform an "artificial" logon before setting the
scr?
This way I should obtain a valid logon session with the remote server
(ASP.NET App). before setting the url of the IFrame?
Something like this:
//perform a logon to the image server
string url =
ConfigurationManager.AppSettings[WebHelper.RemoteServerParameters.IMAGE_APPROVAL_KE Y];
string usr =
ConfigurationManager.AppSettings[WebHelper.RemoteServerParameters.IMAGE_SERVER_USR_ KEY];
string pwd =
ConfigurationManager.AppSettings[WebHelper.RemoteServerParameters.IMAGE_SERVER_PWD_ KEY];
WebRequest req = WebRequest.Create(url);
req.Credentials = new NetworkCredential(usr, pwd);
WebResponse resp = req.GetResponse();
this.frmImageApproval.Attributes["src"] =
req.RequestUri.AbsoluteUri;
--
rgds.
/Claus Konrad
"bruce barker (sqlwork.com)" wrote:
there aren't any. if its a really old web site you can pass the login in the
url., but not recommended. if your the same domain, you can use a cookie.
you could also pass a ticket on the url.
-- bruce (sqlwork.com)
"Claus Konrad" <Cl*********@discussions.microsoft.comwrote in message
news:83**********************************@microsof t.com...
Hi
How do I (in code) provide credentials in the form of user/pwd to a
webapplication I expect to host inside an IFrame tag.
From a scan of the properties of an Iframe, I do only see the src
attribute
allowing my to set the source...
Thanks in advance!
--
rgds.
/Claus Konrad