locked
Page preinit & Page load getting called twice only on the page having reportviewer RRS feed

  • Question

  • User-786758971 posted

    As title says, Only for the page containing the report viewer, preinit & load are getting called twice.

    Already tried making script manager's script mode to release. Then those events are getting called countless times.

    First time it is non-postback & second time it is postback. Help.

    Tuesday, October 9, 2012 1:21 AM

All replies

  • User1006135039 posted

    type the below code in page_load

     if(!Ispostback)

    {

    // your code

    }

    Tuesday, October 9, 2012 2:54 AM
  • User-786758971 posted

    I have that implemented already. Problem is, first it runs this part of the code & next time (on next page load), it goes into else part.

    Tuesday, October 9, 2012 10:13 PM