Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Lorenzo Lee   on Jul 18 In Asp.net Category.

  
Question Answered By: Ujala Hashmi   on Jul 18

Attributes aren't written out for each Item.

Can't you add  the onClick to the CBL it-self and loop thru the elements in JS ??

CheckBoxList1.Attributes["onClick"] = "return checkPIME(this);";

-or-

You could make a control(inherit from CBL) and write out the attributes  for each element I guess.

I did that for a ListBox to show the color attrib.

Sample: www.gotdotnet.com/.../keywordsrch.aspx%20with%20color%20attribute

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Adding Attribute to ListItem Or get search suggestion and latest updates.


Tagged: