473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Staying on a page for awhile causes error

I have a simple search utility that works perfectly except
if the user were to step away from her terminal after finding the results
for - 7 minutes or so, and try to go back to the main page
an error is generated:

(Any idea how to prevent this?)
Object reference not set to an instance of an object
[NullReferenceException: Object reference not set to an instance of an
object.]
Membership.MemberDetail.ShowMember() +1166
Membership.MemberDetail.Page_Load(Object sender, EventArgs e) +7
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

May 2 '06 #1
1 882
My guess would be without seeing your code in the

MemberDetail.ShowMember() method

that you are either accessing a Session or Cached variable which is no
longer present at the time of postback and not handling the case of it not
being there (i.e. returning null).

Cheers,

Greg

"jonefer" <jo*****@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
I have a simple search utility that works perfectly except
if the user were to step away from her terminal after finding the results
for - 7 minutes or so, and try to go back to the main page
an error is generated:

(Any idea how to prevent this?)
Object reference not set to an instance of an object
[NullReferenceException: Object reference not set to an instance of an
object.]
Membership.MemberDetail.ShowMember() +1166
Membership.MemberDetail.Page_Load(Object sender, EventArgs e) +7
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

May 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
by: asj | last post by:
awhile back, eBay decided to switch from a Microsoft/.NET/Windows architecture on the backend to a J2EE one, which might explain why their java backend will handle up to 1 BILLION page views a day!...
15
by: wk6pack | last post by:
Hi, I have a problem and not quite how to go about solving it. I have a form written in asp. I wish to submit the form and have the server return back to the same page without actually...
7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
0
by: David Bartosik - MS MVP | last post by:
I have a web service consumer in asp.net with the web config file set with a custom error page and the remote only setting. Most the time if an error occurs the custom error page is displayed. ...
0
by: Oz | last post by:
Hi Using VS.NET 2003, Windows XP SP1, We have a page which has been developed using ASP.NET. On it, is a button which when clicked is supposed to add some data to a table. When the button is...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
2
by: cciszewski | last post by:
Hi, I am new to javascript, but have been programming in C for awhile. I am currently trying to get a page to reload after a password has gone through, in order to trigger another event, however,...
3
by: Shawn Northrop | last post by:
Awhile ago i built a login script using php/mysql. At the end of the script i called a function header(location: (I don't remember exact sytax). This would redirect the page. Recently i have...
3
by: Ken Shimizu | last post by:
I get an error when submitting an .ASPX page in Safari beta, MAC and PC document.getElementbyId(‘FolderBrowser’).submit(); After the server side code has executed without problems I get the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.