User Control access from code behind problem.
- by BillTetrault
I have a user control called adminMenu and I use it in my index.aspx and all is fine, but I need to access a MenuItem in adminMenu and need to change NavigateUrl on the MenuItem. Tried this code with no luck:
MenuItem MaintenanceReports = this.adminMenu.FindItem("MaintenanceReports");
Not sure if I should be accessing adminMenu properties from controls code behind, but when I try from controls code behind was not able to access it either, any ideas would be appreciated.