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

ASP.NET UniqueID Property


Control Standard Properties Reference Complete Control Standard Properties Reference

Definition and Usage

The UniqueID property is a unique, automatically generated identification for a control.


Example

The following example shows the UniqueID of a button control:

<script runat="server">
Sub Button1_Click(sender As Object, e As EventArgs)
  Response.Write("UniqueID is: " & button1.UniqueID)
End Sub
</script>

<form runat="server" >
<asp:Button ID="button1" OnClick="Button1_Click"
Text="Get UniqueID" 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 FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook