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
 Error in c#
Posted by Rajeswari.P on  5/30/2013 1:36:32 AM Category: C#
Add to my favorites
Email to friend
i got the error in object reference not set to instance of an object when using session in pageload..plz help me

Post Your Reply Post New Question

 Viewer's Reply
Session in Page Load
Answered By Moderator1 on 6/28/2013 9:10:46 PM
Hi,

It seems like you have initialize the Session variables properly. Otherwise, to execute after session exists use the below code,

If (Session.Count >0)
{
Do you code here.....
}
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Speech Technology Magazine
Introduction to Web Applications Development
The Art & Science of JavaScript - Free 100 Page Preview!