[CLOSED] ViewStateMode

  1. #1

    [CLOSED] ViewStateMode

    Hi,
    how can I enable viewstate on one page, when ResourceManager has DisableViewState="True"?
    Last edited by Daniil; May 23, 2014 at 7:00 AM. Reason: [CLOSED]
  2. #2
    Hi @ViDom,

    A ResourceManager's settings work in the context of the page where that ResourceManager is defined. So, I don't quite understand your question, please elaborate.
  3. #3
    Sorry, i forgot to write that ResourceManager is in master page and all pages are content page and for one of them i would like to enable viewstate
  4. #4
    Clear. I think you can do the following in a content page's Page_Load:
    ResourceManager.GetInstance().DisableViewState = false;
  5. #5
    There is ReportViewer control on this content page and when I added ResourceManager.GetInstance().DisableViewState = false in Page_Load, this page gets loop on load
  6. #6
    Where does it loop?
  7. #7
    Hi,

    Check your pageload:

     if (!IsPostBack) // Without verification can stay in the loop
                {
                    //Load Report
                }
    Hope this help!

Similar Threads

  1. Replies: 1
    Last Post: Oct 22, 2012, 8:46 PM
  2. Replies: 3
    Last Post: Jul 27, 2010, 7:54 PM
  3. Replies: 0
    Last Post: Nov 04, 2008, 11:25 AM

Posting Permissions