X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP.NET ID Property


Control Standard Properties Reference Complete Control Standard Properties Reference

Definition and Usage

The ID property is used as identification for a control.

This property should always be set. It is used when other controls or scripts interact with the current control.

Syntax

<asp:webcontrol id="id" runat="server" />


Example

The following example shows a button with the ID property set:

<form runat="server">
<asp:Button id="button" text="Submit" runat="server" />
</form>

Show example »

Control Standard Properties Reference Complete Control Standard Properties Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook