Follow by Email

Saturday, 11 August 2012

how to get datalist controls on code behind page in asp.net


how to get datalist controls on code behind page in asp.net

In this way we can get datalist controls to code behind page:

 foreach (DataListItem ObjItem in DataList1.Items)
        {
         
                Label lblTest = ObjItem.FindControl("lbl_ODamount") as Label;
                lblTest ="Your text";

0 comments:

Post a Comment


                                                            

 
Design by Abhinav Ranjan Sinha