Redirect website into IFrame.

Hello,


Below is code to redirect website url to IFrame.


Add IFrame in webpage.



<iframe id="IframeID" runat="server" height="100" width="100"></iframe>

Here note that we have frame with runat="server" attribute. so we can use from code behind.



IframeID.Attributes.Add("src", "http://dotnet-magic.blogspot.in");


Enjoy!!!!!

Posted in |

0 comments:

Post a Comment