User Control access from code behind problem.

Posted by BillTetrault on Stack Overflow See other posts from Stack Overflow or by BillTetrault
Published on 2010-12-22T14:34:25Z Indexed on 2010/12/23 16:54 UTC
Read the original article Hit count: 138

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET