Hello james,
j> 1.) Is this possible with using only objects loaded in memory?
Yep, just use the Cache class in for this, where u can store your data
j> 2.) Will I need to use Session objects for this?
yep, and you can control your data lifetime by the Session_End event, which
rise when user close browser. Take into account that it works only for the
InProc session mode
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
j> Hi there,
j>
j> I'm just wondering if this is possible in Asp.net - I'm a newbie to
j> Web Programming:-)
j>
j> I'm building this application that will hold a list Persons. A person
j> can
j> have First Name, Last Name, Age, Gender etc.
j> What I want is, whenever a user browser comes onto my ASP.net page
j> for the
j> very first time, I want a fresh/new list
j> of my Persons object to be given to the user - this is an Array of
j> Person.
j> The user will then be able to change the list by deleting a few items
j> from
j> the list.
j> The key thing I'm looking for, is when the browser window is closed,
j> I want
j> ALL changes that were made to the person object/list/array to be
j> discarded.
j> However,
j> if the user browser window is NOT closed, then the used may see
j> changes made
j> to the list of persons. Please note that multiple users may log onto
j> my
j> site at any given time,
j> and I want each user to have a Fresh list of persons object in which
j> they
j> may manipulate.
j> My question to you all ASP.Net gurus are:
j>
j> 1.) Is this possible with using only objects loaded in memory?
j> 2.) Will I need to use Session objects for this?
j> 3.) What is the most simplistic way to implement such a page?
j> thanks,
j>