Bizzare ViewState issue (ASP.NET)

Discussion in 'Software' started by dmartu, Dec 4, 2008.

  1. dmartu

    dmartu

    Joined:
    Dec 4, 2008
    Messages:
    1
    Hello there,

    I've created UserControl which is used as a menu. It is populated dynamically and has two levels.

    The weird thing is though that second level controls' click event is fired but it the code executed in it seems to have no effect at all:



    public void SubCourseRoundMenuClick(object a, CommandEventArgs e)
    {
    pnlCourseEvents.Visible = false;
    pnlCourseSubEvents.Style["display"] = "block";
    }

    Both properties changes to their old values when observed in any event fired after SubCourseRoundMenuClick.

    All menu items and subitems are populated at the same order on every postback. EnableViewState=false on UserControl (though i've tried other way round as well).

    For suspect ViewState is playing tricks on me.

    This issue is really driving me bonkers so any advice or guidance would be much appreciated.

    Best Regards,

    Dave
     
    dmartu, Dec 4, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian V
    Replies:
    4
    Views:
    2,223
    Brian V
    Jan 1, 2006
  2. jacksu
    Replies:
    6
    Views:
    3,464
    The Poster Formerly Known as Kline Sphere
    Feb 22, 2004
  3. Muse Groops

    Bizzare website info needed.

    Muse Groops, May 4, 2007, in forum: Computer Support
    Replies:
    11
    Views:
    796
    Muse Groops
    May 5, 2007
  4. london1919
    Replies:
    1
    Views:
    3,063
    Lawrence Garvin \(MVP\)
    Dec 8, 2008
  5. azraffarveen
    Replies:
    0
    Views:
    1,833
    azraffarveen
    May 12, 2009
Loading...

Share This Page