E
epigram
I've got a page that has a Panel object that I am dynamically adding
CheckBox controls to. The number of CheckBox controls and the name of each
control is based on a database query. I would like to know how I can query
for all the CheckBox controls on the page during postback and check their
checked attribute without using the name of each checkbox. I want to do
this in a generic way so that I don't have to requery the db or save the
names of all the CheckBox controls somewhere to use during postback. For
CheckBox controls that are placed on the page during design time, this is
easy because I know the name. I'm just not sure how to do this for the
particular scenario I am describing here.
Thanks!
CheckBox controls to. The number of CheckBox controls and the name of each
control is based on a database query. I would like to know how I can query
for all the CheckBox controls on the page during postback and check their
checked attribute without using the name of each checkbox. I want to do
this in a generic way so that I don't have to requery the db or save the
names of all the CheckBox controls somewhere to use during postback. For
CheckBox controls that are placed on the page during design time, this is
easy because I know the name. I'm just not sure how to do this for the
particular scenario I am describing here.
Thanks!