How to add Attributes in <asp:CheckBox> ?

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

Sreejumon[MVP]

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top