PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 1.00 average.

How to add Attributes in <asp:CheckBox> ?

 
 
Liu Xuesong
Guest
Posts: n/a
 
      29th Jun 2003
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
 
 
 
 
Sreejumon[MVP]
Guest
Posts: n/a
 
      29th Jun 2003
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" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkbox control - won't render attributes correctly =?Utf-8?B?R3JhaGFt?= Microsoft ASP .NET 0 16th Aug 2005 02:40 AM
Can't use attributes.add for checkbox? Paul W Microsoft ASP .NET 3 8th Jul 2005 08:16 PM
Re: Adding event attributes to checkbox's in CheckBoxList darkpeace Microsoft ASP .NET 0 23rd Jan 2005 02:26 AM
File Attributes - Read-Only - Grey Checkbox ? Doc_9 Windows XP Basics 1 26th Aug 2003 03:08 AM
How to add Attributes in <asp:CheckBox> ? Liu Xuesong Microsoft ASP .NET 1 29th Jun 2003 08:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:27 PM.