I am trying to set attributes for an IFRAME html control from the code-behind aspx.cs file.
I came across a post that says you can use FindControl to find the non-as
Where is your iframe embedded?
Having this code
I can access with iFrame1.Attributes["src"] just to iFrame1 and not to iFrame2.
iFrame1.Attributes["src"]
Alternatively, you can access to any element in your form with:
FindControl("iFrame2") as System.Web.UI.HtmlControls.HtmlGenericControl