Latest web development tutorials

ASP.NET UniqueID property

Control Standard Properties Reference Control Standard Properties Reference

Definition and Usage

Gets the unique, hierarchically qualified identifier automatically generated UniqueID property. This attribute the ID attribute is different because the UniqueID property contains the control identifier naming container. This identifier is generated automatically when the page request process.


Examples

The following example shows UniqueID 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>

The demonstration >>

Control Standard Properties Reference Control Standard Properties Reference