This is a general question that may be the same for any html tag.
An alternative third option is to use a literal control and completely display the iframe on the code behind:
txtLiteral.Text = "string.Format(
"<iframe id=\"dynamicfrmae\" src=\"{0}\"></iframe>", PageUrlForSrc );
Different for all methods:
Direct recording on page <%= %>
- Do not work with the update panel
- , ( ).
, . , , responce.flush() .
,
, , .