When i try to click on gridview button then i am getting error like this
Invalid postback or callback argument.
System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using
When i try to click on gridview button then i am getting error like this
System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Aug 22, 2013, 10:14 AM
its happening due to binding the grid view in pageload
if (!IsPostBack)
{
showDataItem();
}
else
{
DataSet tempDs = gvItems.DataSource as DataSet;
gvItems.DataSource = tempDs;
gvItems.DataBind();
}
in the above code why are you binding the grid again because its already binding within showdataItem():
remove this three line and check.
if (!IsPostBack)
{
showDataItem();
}
Amit KumarPosted Aug 22, 2013, 10:20 AM
Amit KumarPosted Aug 22, 2013, 10:07 AM
and .cs code
Sanjeeb LenkaPosted Aug 22, 2013, 10:03 AM