as I said, this is not about Session. Session is just the easiest way
can be used as a storage example at this point. It's about how we
query the server-side viewstate and return the value.
It's difficult for me to post some code here. but the main reason is,
there are many pages in our system dealing with complicated database
entity (parent-children etc.), to improve performance, we place the
entity in ViewState, then use lazy binding to bind child items.
For example, when a user wants to create a new record, open the pages,
a blank entity is created and is placed in the ViewState, then after
fill out all forms (some forms might not have to be opened, in that
case, the child-entity can be null), when the user clicks save, the
program will go through the entity and persist.
say, at the same time, the same user opens another window to search an
existing record on the same page, he opens a few sub-items, so all
opened entities are in the viewstate, other are not (coz it's lazy-
binding), then we are going to have a viewstate conflict, one is brand-
new, another has data from an existing record.
now, the user clicks save to persist the new record. it blows out.
so, single window, our structure works well; in IE6, it's easy to work
around; in tabs, there will be a big issue.
what I am looking for is, find a way to identify the user current
working instance( window or tab), and create another server-side
viewstate entry for that specific page.
On Apr 14, 4:51 pm, "Andrew Badera" <
and...@badera.us> wrote:
> In that case, your pages really need to be as atomic and idempotent as
> possible. Could you provide an example of the problems (I can imagine
> plenty, but something specific would help) you're dealing with? And I'll ask
> again, is Session truly necessary, or did you/your team *make *it a
> --Andy Baderahttp://
andrew.badera.us/http://flipbitsnotburgers.blogspot.com/