作者:俊铭士弘政翰 | 来源:互联网 | 2023-09-16 10:24
IhaveaGridViewinanUpdatePanel(ASP.Net2.0).我在UpdatePanel(ASP.Net2.0)中有一个GridView。Ihave
I have a GridView in an UpdatePanel (ASP.Net 2.0) .
我在UpdatePanel(ASP.Net 2.0)中有一个GridView。
I have this code for the PageIndexChanging method of the grid view:
我有网格视图的PageIndexChanging方法的代码:
protected void grdProductSearch_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grdProductSearch.PageIndex = e.NewPageIndex;
grdProductSearch.DataBind();
}
For the UpdatePanel, in the Triggers collection I have added the GridView and the PageIndexChanging method for the EventName.
对于UpdatePanel,在Triggers集合中,我为EventName添加了GridView和PageIndexChanging方法。
Yet, the grid displays data correctly but there is no response when I click the page numbers at the bottom. What am I doing wrong?
然而,网格正确显示数据,但当我点击底部的页码时没有响应。我究竟做错了什么?
Thanks.
谢谢。
1 个解决方案