How to access control under header template in c#
by Preetha[ Edit ] 2012-09-12 11:27:09
Here is the code :
Control HeaderTemplate = DataList1.Controls[0].Controls[0];
DropDownList myDropdown = HeaderTemplate.FindControl("DropDownList1") as DropDownList;
myDropdown.SelectedValue.ToString()