开发者

Can an Iframe load its contents at the server side rather than client side?

开发者 https://www.devze.com 2023-01-31 09:26 出处:网络
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 a

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消