datagrid分页后点F5刷新出现问题
datagrid分页后刷新提示
The page cannot be refreshed without resendint information. Click Retry to send the information again, or click Cancel to return to the page that you were trying to view.
如何能解决? 谢谢了~
------解决方案--------------------可能焦点在某个控件上吧,刷新的时候又得post提交一次
------解决方案--------------------page_load
{
if (!IsPostBack)
{
...
}
}
------解决方案--------------------本来就这样,DataGrid的分页功能是通过回发(PostBack)实现的,就是向服务器端提交表单,要想分页后刷新不出现这种提示,只能通过url来分页,试试我写的免费分页控件:www.webdiyer.com