How to access control under header template in c#

by Preetha 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()

Tagged in:

832
like
0
dislike
0
mail
flag

You must LOGIN to add comments