tags:

views:

125

answers:

1

On a page_load() ,

Is there a way of capturing that a paging value has been changed? (e.g.from page 1 to page 2)

This relates to a Gridview control

+2  A: 

John - why are you looking for this in the page_load? You may be better off handling the PageIndexChanged or PageIndexChanging events on the gridview instead.

In the event that you need to know the control that caused the postback during the page_load - look at this post for a solution. In that solution, they suggest that you query the Request["__EVENTTARGET"] variable. Another similar solution is here.

Scott Ivey
I want to differentiate between a postback from the PageIndexchanged or a text_changed postback.
John Nolan