<iframe id="myIframe" runat="server"></iframe
I want to find out this iframe in page. So I do like
Dim myFrame As Iframe
myFrame = CType(ErrorMessage1.FindControl("myIframe"), Iframe)
But Iframe is not a class in ASP.NET 2.0. What is the proper class for Iframe?there's no object of type iframe. Whenever you're in a situation like this you have to use the HTMLGenericControl:
System.Web.UI.HtmlControls.HtmlGenericControlAny special property related to the control that is not part of the HtmlGenericControl is accesible through the attributes property.
0 comments:
Post a Comment