about HTML Server side control

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top