IFRAME
-
I have IFRAME control on my page. I can set the 'src' property at design time, to load desired page into that control. But how to load a page into that IFRAME control programatically? I mean: This IFRAMe hase ID="aaa". I would like to be able to write in aspx.cs file: aaa.url = "Page1.aspx" or something similar How is that possible? thank you in advance for any help
-
I have IFRAME control on my page. I can set the 'src' property at design time, to load desired page into that control. But how to load a page into that IFRAME control programatically? I mean: This IFRAMe hase ID="aaa". I would like to be able to write in aspx.cs file: aaa.url = "Page1.aspx" or something similar How is that possible? thank you in advance for any help
-
You can use attributes property to achieve the required thing. something like this:
iframeid.Attributes.Add("src","yourpage.aspx");
Best Regards, Apurva Kaushal