How to get text from CheckBox.Text property

  • Thread starter Thread starter neilr
  • Start date Start date
N

neilr

MSDN lists .text as a propoerty of the asp check obox but can anyone
help me to find out how to access it? We have a panel at the top of
our list forms that allows the user to select which columns to show
from an SQL stored procedure (via business level code). We have
succeeded in getting the names of the check boxes and using this to
select the columns - by using the same names for the checkboxes (with
chk stripped off the beginning of them) as for the database fields.
However, the field names in the SQL database are very obscure and we
would like to use the clearer names that we have in the check box text
label as the headings for the datagrid list - eg Company type instead
of CoTypeCodeName. However, we seem not to be able to get anything
from the .text property. Is there another way of getting the text from
the label that is associated wth a check box? Many thanks for any help
 
MSDN lists .text as a propoerty of the asp check obox but can anyone
help me to find out how to access it? We have a panel at the top of
our list forms that allows the user to select which columns to show
from an SQL stored procedure (via business level code). We have
succeeded in getting the names of the check boxes and using this to
select the columns - by using the same names for the checkboxes (with
chk stripped off the beginning of them) as for the database fields.
However, the field names in the SQL database are very obscure and we
would like to use the clearer names that we have in the check box text
label as the headings for the datagrid list - eg Company type instead
of CoTypeCodeName. However, we seem not to be able to get anything
from the .text property. Is there another way of getting the text from
the label that is associated wth a check box? Many thanks for any help

OK - no problem I found how to do this - - we had not specified
"mycontrol" as a checkbox - when we did , the checkbox.text property
worked - - stupid error on our part
 
Back
Top