Author: lohumi | Posted on: 10/9/2010 8:17:10 AM | Views : 294

i have panel & i m trying to bind it with data table
as panel has no datasource property. can anyone solve it out.

DataTable dt=new DataTable ();

DataRow dr = dt.NewRow();
            dr["serviceid"] = ddlservices.SelectedValue.ToString();
            dt.Rows.Add(dr);
            foreach (DataRow row in dt.Rows)
            {
                PanelBody.Controls.Add(row);
                PanelBody.DataBind();
            }
thanks in advance



...

Go to the complete details ...