GridView paging - Invalid postback or callback argument

I

Iain

All,

I bind to a GridView on the Page_Load event.

Occasionally when clicking any of the pages within the grid the
following error appears :

"Invalid postback or callback argument."

Ideas/suggestions welcome

Ian
 
G

Guest

All,

I bind to a GridView on the Page_Load event.

Occasionally when clicking any of the pages within the grid the
following error appears :

"Invalid postback or callback argument."

Ideas/suggestions welcome

Ian

It might be that you call DataBind before the paging event is raised.
Check if you didn't forget if (!Page.IsPostBack) before that call

e.g.

protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
....
DataGrid1.DataBind();
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top