Solved

I need a tooltip option for each listitem in my asp:checkboxlist

Posted on 2007-11-19
5
2,261 Views
Last Modified: 2008-03-15
I'd need to do a tooltip on a checkboxlist- for each listitem.  I'd like for the tooltip option to work similar to the one on asp:label.  

I've attempted to do this, but I'm only able to create rollovers or tooltips for the whole checkboxlist and not a different one for each listitem.  This is my real problem.

sample code:: as you know this does not work.

                        <asp:CheckBoxList ID="cbl1" runat="server">
<asp:ListItem Value="QUF" Text="QUF/NUF" tooltip="XUF"></asp:ListItem>
<asp:ListItem Value="BET" Text="BET/NET" tooltip=" XEF"></asp:ListItem>
                        </asp:CheckBoxList>
0
Comment
Question by:sl1nger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 16

Expert Comment

by:McExp
ID: 20316604
The Check Box list is quite limited in that respect, you can't set tooltips individually. you will either need to just use multiple <asp:checkbox/> controls or write your own composite control to imitate the <asp:CheckBoxList/> control with the extra fuctionality you need.
0
 

Author Comment

by:sl1nger
ID: 20316873
McExp -

Do you know of any examples with the custom composite controls??
0
 
LVL 16

Accepted Solution

by:
McExp earned 500 total points
ID: 20321621
hmm! there are plenty on the internet!

Here is a good one for starters:-
http://www.brainbell.com/tutorials/ASP/Custom_Composite_Controls.html

I've not done anything specifically with check boxes myself so can't provide anything more specific.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21135864
Forced accept.

Computer101
EE Admin
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question