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> ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top