Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 page_load() 上,
有没有办法捕获分页值已更改?(例如从第 1 页到第 2 页)
这与 Gridview 控件有关
约翰 - 你为什么要在 page_load 中寻找这个?您最好在 gridview 上处理 PageIndexChanged 或 PageIndexChanging 事件。
如果您需要知道在 page_load 期间导致回发的控件 - 请查看此帖子以获取解决方案。在该解决方案中,他们建议您查询 Request["__EVENTTARGET"] 变量。另一个类似的解决方案是here。