PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET How to add Attributes in <asp:CheckBox> ?

Reply

How to add Attributes in <asp:CheckBox> ?

 
Thread Tools Rate Thread
Old 29-06-2003, 03:54 AM   #1
Liu Xuesong
Guest
 
Posts: n/a
Default How to add Attributes in <asp:CheckBox> ?


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> ?
  Reply With Quote
Old 29-06-2003, 07:14 AM   #2
Sreejumon[MVP]
Guest
 
Posts: n/a
Default Re: 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

"Liu Xuesong" <xuesong@xinhuanet.com> wrote in message news:uAZZiIfPDHA.4024@tk2msftngp13.phx.gbl...
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> ?
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off