AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 Problem in datalist paging
Posted by Chandan on  1/10/2011 7:28:54 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
i compile. the error is System.NullReferenceException: Object reference not set to an instance of an object at if (lnkbtnPage.CommandArgument.ToString() == CurrentPage.ToString()) { lnkbtnPage.Enabled = false;

Post Your Reply Post New Question

 Viewer's Reply
Asp.Net DataList Paging
Answered By Moderator1 on 1/16/2011 1:58:45 AM
Hi,

You need to make sure LinkButton is properly named as "lnkbtnPage". Also check the CurrentPage property is properly defined in your code-behind.
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Integrating Silverlight 4 with SharePoint 2010 - Free 42 Page Sample Chapter
Everything You Know About CSS Is Wrong! - Free 37 Page Preview!
Simply SQL - Free 111 Page Preview!