Hell Sir,
I am using repeater control to show the result after search .and using checkbox control in itemtemplate row .After searchresult i am facing a problem in identifying the checked checkboxes in the itemtemplate of repeater control .
Please provide appropriate solution ...
thanks for ur attention...
Hi,
take a look at this article: the technique's similar for repeaters:Using a comma delimited string with id's as input parameter for a SQL query. But if I remember correctly you shouldn't loop the Rows but Items instead.
Grz, Kris.
|||Hello sir
i am asking about the repeater control
please forward the solution in case of repeater control
|||Hi,
In your code-behind file, try to use FindControl to get the checkbox on your page.See the following sample.
for (int i = 0; i <this.Repeater1.Items.Count; i++) {bool ifchecked=(Checkbox(this.Repeater1.Items[i].FindControl("Checkbox1"))).Checked;}
Hope that helps. Thanks.
No comments:
Post a Comment