By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,722 Members | 1,259 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,722 IT Pros & Developers. It's quick & easy.

Checkboxes with Repeaters and DataGrids

P: n/a
I am having trouble getting checkboxes to work within Repeaters and

I have tried to access the value of each checkbox within a repeater
which has been ticked as follows :-

string sValues ="values";
foreach (RepeaterItem ri in rptrPublications.Items){
CheckBox cbx = (CheckBox)ri.FindControl("cbxPub");
sValues = sValues + cbx.Checked.ToString();

For some reason, it doesn't recognise the cbx.Checked statement, but
if I remove this line, it happily writes out the values of each

I am also having getting a checkbox's OnCheckedChanged event to fire
when it's within either s Repeater or a DataGrid

Could anyone please put forward some suggestions ?

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.