How to add Attributes in <asp:CheckBox> ?

  • Thread starter Thread starter Liu Xuesong
  • Start date Start date
L

Liu Xuesong

I want to add Attributes into CheckBox in .aspx page

<html>
<asp:CheckBox id="ChapterCheck" runat="server" />
</html>

How to add Attributes in <asp:CheckBox> ?
 
Hi Liu,

Have you tried ChapterCheck.Attributes.Add("onclick", "validate();"); inside PageLoad ?
Please refer the ckeckboxlist control too.

--
Let me know if you need further help

Regards
Sreejumon[MVP]
DOTNET makes IT happen

I want to add Attributes into CheckBox in .aspx page

<html>
<asp:CheckBox id="ChapterCheck" runat="server" />
</html>

How to add Attributes in <asp:CheckBox> ?
 
Back
Top