runat="server" attribute

M

Matt

If the web control has runat="server" attribute, can we say that control is
built on the server (on the fly), and not static control??

Please advise.
 
R

Rocky Moore

Web server controls are dynamic controls. The "runat='server' can be used
with web controls and even many html codes. It is a method to allow your
backend code easily access those controls as objects as the page is built.
As an example, in VS.NET, you can put a "runat='server' on a DIV tag that
has an id and it will generate a HtmlGenericControl object in your code
behind that has the name of the ID of your div tag.

As far as being static, I am not sure what you mean.
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top