Quantcast
Channel: A CheckBox with a LinkLabel
Viewing all articles
Browse latest Browse all 3

A CheckBox with a LinkLabel

0
0
I want the "label" for my checkbox (i.e. the text that you can click to check/uncheck the box) to have a link in it. My current solution is to put the empty string in the Text property of the checkbox, then just place a LinkLabel next to the checkbox where the "label" (i.e. Text) would normally be.

This doesn't work very well because clicking on the (non-hyperlinked parts of the) linklabel doesn't check/uncheck the checkbox. I suppose I could hack it with a Click event handler, but it seems like there must be a better way... (For example, that version does not have the checkbox change to a "hover" state when you hover over the link label). I'm just not seeing it.

Any ideas?

Thanks!

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images