runat Attribute
Sets where the code is to be processed for the item.
Syntax
HTML <tagPrefix:ELEMENT runat=sHost ... > Scripting N/A
Possible Values
tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive. sHost System.String that specifies the type of host. clientDefault. Code runs on the client.serverCode runs on the server before the page is sent to the client.
Remarks
The opening tag of Internet Explorer WebControls must include the runat property set to
serverfor the control to run within ASP.NET.
Applies To
See Also
Show: