I know that setting runat="server" and specifying an id for an iframe control, makes it accessible on the serve开发者_如何转开发r side but what I need is that the iframe source contents get loaded at server side not client side.
Is it possible?
Why do I need it this way?
Currently my iframe source site is configured for ntlm authentication and sso which means it would read my windows credentials whereas I'd need it reads the credentials provided by the site which hosts that iframe.
Thanks
No that cannot be done. It is not the way things work. If you need to load content on the server side, you can use the WebRequest
class. But I doubt that that is what you want. I think you need to rethink your application design.
No, setting the runat="server" attribute of the iframe tag will allow you to modify it's attributes on the server side but the source of the iframe will still be downloaded from the client.
精彩评论