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
Speech Technology Magazine
Many .NET teams are underperforming, is yours?
Simply JavaScript - Free 150 Page Preview!