popupmodal and Page.IsPostback=false and Page.IsCallback=false

Last post 07-05-2009 9:47 AM by jerrykur. 2 replies.

Sort Posts:

  • popupmodal and Page.IsPostback=false and Page.IsCallback=false

    07-01-2009, 10:51 AM
    • Member
      231 point Member
    • jerrykur
    • Member since 01-22-2004, 5:15 AM
    • Posts 214

    Hi,

    We have a report generator in which a popupmodal panel is invoked when the user presses the Save button. This popup modal is on a master page that supports the several pages of the report generator.  When the user presses the OK button on the panel, the OK handler is raised and the report save.  The PageLoad event is raised in the child page, but both Page.IsPostback, Page.IsCallback, master.ScriptMgr.InInAsyncPostBack are all false.  This causes the page to reinitialize and delete the users changes. 

    I have a few questions. 

    1) Is this the expected behavior?

    2) if so, what is the best way to proceed.

    Thanks,

    Jerry




  • Re: popupmodal and Page.IsPostback=false and Page.IsCallback=false

    07-01-2009, 8:28 PM
    Answer
    • Participant
      1,768 point Participant
    • nmreddy83
    • Member since 01-21-2009, 6:00 PM
    • India
    • Posts 316

    can you let me know the what type of control it is..

    1. is ViewState Enabled

    2. are you initializing data or rebinding for very post / callback (page_load or Page_Init)

    i think it is one of the above two issues.


    or one more scenario is; if it is dynamic control, every time you have recreate that control only in Page_Init or Page_Load to keep the ViewState. Otherwise it will loose the ViewState of that control


    ***Hope this helps you***
    ***Please mark as answer if this helps you. ***

    thank you,
    -nm reddy
  • Re: popupmodal and Page.IsPostback=false and Page.IsCallback=false

    07-05-2009, 9:47 AM
    • Member
      231 point Member
    • jerrykur
    • Member since 01-22-2004, 5:15 AM
    • Posts 214

    The panel in the master page contains 3 controls, 2 text boxes and a button.  The values are detected on  the page_load of the child page when the user presses the button.  We are rebinding data during this page load, but for a grid in the child page, not for the any of the controls on the master page.


     

Page 1 of 1 (3 items)