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

Amarnath Balasubramanian
  • 9,300
  • 8
  • 34
  • 62
Johnno Nolan
  • 29,228
  • 19
  • 111
  • 160

1 Answers1

2

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.

Community
  • 1
  • 1
Scott Ivey
  • 40,768
  • 21
  • 80
  • 118