I have a bulleted list set to BulletedListDisplayMode.HyperLink display mode, and it works fine but I cannot find a way to specify the title tag for each hyperlink. Can this be done?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not possible out of the box as under the hood BulletedList binds to a ListItem which does not have any such property.
You can deal with this a few ways –
1) Handle the OnPreRender event, loop through all items and add using Attributes.Add()
2) Create a custom control which inherits from BulletedList and add a title property.
3) Get rid of the BulletList all together and use a Repeater
Personally I would go for 3) as you then have much more flexibility in the output.