Regarding error
I am getting a error "the name page index does not exist in current context " and some other errors are also displayed.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Amit ChoudharyRank #145 · 15.8K reputationPosted Jul 8, 2010, 10:22 PM EDT
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.
Amit ChoudharyRank #145 · 15.8K reputationPosted Jul 9, 2010, 12:15 AM EDT
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