How to access on of the Control in Page from the UserControl?
- by dewacorp.alliances
Hi there
How do I access the Control (dropdownlist) in current Page from the UserControl?
In the UserControl:
String test = ((DropDownList)this.Parent.FindControl("drpdwnlstMainRegion")).SelectedValue;
It return null on ((DropDownList)this.Parent.FindControl("drpdwnlstMainRegion")) for some reason?!?!
BTW ... I am using ASP.NET C# 3.5.
Thanks