C
Control Freq
Hi,
I am still new to dotnet programming, and ASP.NET in general.
Something that has been bugging me for a while is this:
In a Web Form application, using C# in the codebehind. If I have a drop
down combobox filled with a list of stuff, like employee names etc. I
can select a persons name and see the codebehind event fired. No news
flash there then.
However, if I leave the web form open for a few minutes, make a coffee
etc, then come back, and choose a different user name, I get 'blah blah
not set to an instance of an object' exception.
It looks like the garbage collector has cleaned up my Combobox.
I am missing something fundamental about dotnet programming?
I have tried a few things, like making some stuff static etc, nothing
helps.
I am using VS2005 on XP.
Regards
I am still new to dotnet programming, and ASP.NET in general.
Something that has been bugging me for a while is this:
In a Web Form application, using C# in the codebehind. If I have a drop
down combobox filled with a list of stuff, like employee names etc. I
can select a persons name and see the codebehind event fired. No news
flash there then.
However, if I leave the web form open for a few minutes, make a coffee
etc, then come back, and choose a different user name, I get 'blah blah
not set to an instance of an object' exception.
It looks like the garbage collector has cleaned up my Combobox.
I am missing something fundamental about dotnet programming?
I have tried a few things, like making some stuff static etc, nothing
helps.
I am using VS2005 on XP.
Regards