Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckBoxLIst with LinkButtons 1

Status
Not open for further replies.

VBRookie

Programmer
May 29, 2001
331
US
Hello all,

Let me explain what I'm trying to accomplish here. I want to use a checkboxlist control but instead of just having plain text appear next to the boxes I want the text to appear as linkbuttons that the user can click and navigate to another page that gives more detail.

Can this be done and if so how?

- VBRookie
 
Yes
Check out the repeater control. Use a template of a check box and a hyperlink control.
Alternatively, for some reason, you may need to have exact control of how the hyerplink's HTML is rendered. In this case, just iterate thru the checkbox control and set the text of each item to an appropriate <a> tag.


Mark [openup]
 
Repeater control ... I had not looked into that one. I had come up with a workaround of just creating an HTML table and adding checkbox and linkbutton controls to each table cell but if there is a simpler way to do it I would much rather use that method.

Thanks mucho [afro]

- VBRookie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top