Add the below line if grid bind in page load :--
if (!Page.IsPostBack)
{
DataTable dt=methodName_that_fill_datatable();
}
add
<%@ Page AutoEventWireup="true" >
and remove<%@ Page EnableEventValidation="true" >
if (!Page.IsPostBack)
{
DataTable dt=methodName_that_fill_datatable();
}
add
<%@ Page AutoEventWireup="true" >
and remove<%@ Page EnableEventValidation="true" >
No comments:
Post a Comment