runat="server" attribute

  • Thread starter Thread starter Matt
  • Start date Start date
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.
 
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.
 
Back
Top