about HTML Server side control

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

Here we have a HTML server side control that is called HtmlForm. It is a
server side control because we have added the attribute runat="server" so it
can be mainpulated on the server side.

Now suppose we remove the runat="server" attribute what is the control
called then it can't still be HTML server side control ?


<form id="form1" runat="server">
.....
</form>


//Tony
 
Here we have a HTML server side control that is called HtmlForm. It is a
server side control because we have added the attribute runat="server" so it
can be mainpulated on the server side.

Now suppose we remove the runat="server" attribute what is the control
called then it can't still be HTML server side control ?

<form id="form1" runat="server">
....
</form>

If it does not have a runat="server" attribute then
it becomes plain HTML (which in ASP.NET pages is a
LiteralControl).

Note that those elements with runat="server" attribute can
be either HTML control or web control. Those are different!

Arne
 
Back
Top