Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
PageIndexchanged-Event fired before Page_Load???
posted

 Hello,

 we`ve just updated our webapplication from NetAdvantage 2003/3 to 2007/1 in the .NET Framework 1.1 Visual Studio 2003.

We now that this version upgrade is a little bit late, but it seems to work nevertheless.

The problem is, that we change the value of some controls in the PageIndexChanged event. With the old NetAdvantage, this event was fired after the Page_Load event. Now, it is fired before.

The disadvantage is, that the control properties we want to change in the PageIndexChanged event are set back to their old values in the Page_Load.

Is there any possibility to fire PageIndexChanged after Page_Load?

Kind Regards ,

Denny 

Parents
  • 1171
    posted

    This is a little bit of a hack, but if you handle the grid's InitializeDataSource event the PageIndexChanged event will fire after Page_Load.This isn't very intuitive, but the reason the grid works like that is because in certain situations it needs to make sure that it has the rows before processing the information sent back from the postback. 

    You'll need to hook up the InitializeDataSource because it's not supported at design time. 

Reply Children