Recently I needed to access master page control in the Master file of Page.
Here is the sample for this:
//Menu1 is the Menu in Master Page controlMenu objMenu = (Menu) this.Form.Parent.FindControl("Menu1");
//Resetting image
objMenu.Items[1].ImageUrl = "../images/icoAlert.gif";
Here is the sample for this:
//Menu1 is the Menu in Master Page controlMenu objMenu = (Menu) this.Form.Parent.FindControl("Menu1");
//Resetting image
objMenu.Items[1].ImageUrl = "../images/icoAlert.gif";
No comments:
Post a Comment