1

I am using SP2010. I have created a CAML query. This query has listItems as results. I would like to add these items to my repeaters datasource. How can I implement this?

3

Try the following code:

SPListItemCollection items = spList.GetItems(spquery);
repeaterControl.DataSource = items.GetDataTable();
repeaterControl.DataBind();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.