Hi every one
I do the following code for accessing the user control in datalist header
Here is the code for you
Control HeaderTemplate = DataList1.Controls[0].Controls[0];
DropDownList myDropdown = HeaderTemplate.FindControl("DropDownList1") as DropDownList;
myDropdown.SelectedValue.ToString()
Regards
Rashid Imran Bilgrami
CEO
Best visualization
http://www.bestvisualization.com
I do the following code for accessing the user control in datalist header
Here is the code for you
Control HeaderTemplate = DataList1.Controls[0].Controls[0];
DropDownList myDropdown = HeaderTemplate.FindControl("DropDownList1") as DropDownList;
myDropdown.SelectedValue.ToString()
Regards
Rashid Imran Bilgrami
CEO
Best visualization
http://www.bestvisualization.com
Comments
Post a Comment
Thanks for the Comments , Your review will display soon