Author: dba123 | Posted on: 8/25/2008 11:09:22 AM | Views : 464

I commented out the redirects here and the setting of the ImageURL works fine.  Problem: As soon as I introduce those redirects, all is lost in the page I redirect to, and the Image is not set for the menu control.
 Why and how do I persist this on lets say either of t he default.aspx pages I'm trying to redirect to?  I also need to be able to grab reference to the Menu control itself so I can maybe somehow do a Menu1.Items[1].ImageUrl = "~/App_Themes/xxx/AdminTabEnabled.jpg"; once I get to default.aspx?  Seems like a bunch of hell to me just to get the image to stay.

 
The code.  This is in my master page's code behind.  My Main.master holds the control and this is where I try to tell it to set the image after redirect.
    public void Menu1_MenuItemClick(Object sender, MenuEventArgs e)
    {
        if (Page.IsP ...

Go to the complete details ...