I have a user control with an asp:checkbox next to a description of a workshop. i'm being asked to program the checkbox so that when a user checks the checkbox, the checkbox control returns the name of the checkbox (in a string format with other than the name of the checkbox) and a string value (other than just "true" or "false" . For example, if checkbox ID="chk_workshop_01", i'm trying to replace the name of this checkbox control to "Workshop One Date:" and if "chk_workshop_01.checked = true" Then replace the value "true" with a string like "April 23, 2010"
I'm trying to work with the labelattributes like this:
chk_workshop_01.LabelAttributes.Add("April 23, 2010", "lblWorkshop_01") but I'm not having any success.
All i need is a return from the form is a checkbox control with a string name and a value other than "true" or "false" instead of "true" or "false"
Any help with this is greatly appreciated.