On 08-05-2011 16:30, Tony Johansson wrote:
> Hello!
>
> Here I have a HTML document.
> I just wonder if it's correct to say that the div element in this document
> is also a control.
> My definition is that the div is of course an element but not a control.
> I would say that a control is only those that has a visual appearance on the
> form like table,TextBox, Label and so on.
> Is this a correct interpretation ?
A <div runat="server"> becomes a:
System.Web.UI.HtmlControls.HtmlGenericControl
so it is a control, but because it is a HtmlGenericControl and
not a HtmlDiv (that does not exist), then it is not very useful.
Arne
|