regarding error
I am getting a error "the name page index does not exist in current context " and some other errors are also displayed.
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.
Amit ChoudharyPosted Jul 9, 2010, 4:15 AM
Here is your error you have to add double quotes to the name of the field in eval function....
Please mark "Do you like this post" if it helps you
Amit ChoudharyPosted Jul 9, 2010, 2:22 AM
i looked in to your code and here i found the victim code:
private void doPaging()
{
DataTable dt = new DataTable();
// Wrong way of adding coulumn in datatable
dt.Columns.Add("PageIndex");
dt.Columns.Add("PageText");
...................
.....................
}
Try this:
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("PageIndex",System.Type.GetType("System.Int32")));
dt.Columns.Add(new DataColumn("PageText",System.Type.GetType("System.String")));
Please mark "Do you like this post" if it helps you.