ASP.NET ClientID 屬性
ASP.NET ClientID 屬性

定義和用法
ClientID 屬性獲取由 ASP.NET 自動(dòng)生成的控件標(biāo)識(shí)符。
實(shí)例
下面的實(shí)例顯示 Button 控件的 ClientID:
<script runat="server">
Sub Button1_Click(sender As Object, e As EventArgs)
??Response.Write("The ClientID of the button is: ")
??Response.Write(button1.ClientID)
End Sub
</script>
<form runat="server" >
<asp:Button ID="button1" OnClick="Button1_Click"
Text="Get ClientID" runat="server" />
</form>
Sub Button1_Click(sender As Object, e As EventArgs)
??Response.Write("The ClientID of the button is: ")
??Response.Write(button1.ClientID)
End Sub
</script>
<form runat="server" >
<asp:Button ID="button1" OnClick="Button1_Click"
Text="Get ClientID" runat="server" />
</form>
演示實(shí)例 ?

相關(guān)文章
- ASP.NET SortedList
- ASP.NET ImageButton 控件
- WebSecurity CurrentUserName 屬性
- WebSecurity IsAuthenticated 屬性
- WebSecurity ConfirmAccount 方法
- WebSecurity Logout 方法
- WebSecurity UserExists 方法
- ASP.NET HTML 控件 CustomValidator
- ASP.NET HTML 控件 SortedList DropDownList
- ASP.NET HTML 控件 XML RadiobuttonList
- C# 實(shí)例 For Each 循環(huán)
- C# 實(shí)例 Array 數(shù)組
- htmlbutton
- ASP.NET Calendar NextPrevStyle 屬性
- ASP.NET Calendar PrevMonthText 屬性
- ASP.NET Calendar SelectMonthText 屬性
- ASP.NET Calendar ShowNextPrevMonth 屬性
- ASP.NET CalendarDay IsOtherMonth 屬性
- ASP.NET Button Text 屬性
- ASP.NET Style ForeColor 屬性