473,387 Members | 1,574 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.

Session state and multiple windows/frames

I'm currently working on a project developing a web application that makes
heavy use of 3rd-party controls, popup windows and frames ( not my design I
hasten to add ).
Some of the pages make use of several user controls embedded in a tab
control. Needless to say that the page size can be somewhat on the large
size, including a lot of information being stored in viewstate.

I'm currently looking for a solution to resolve the problem of the page
bloat.
My first choice was to redesign the pages to reduce the number of tabs (and
user controls) on the page - and to adjust where viewstate is used, however
the powers-that-be like their design and won't change it even though the
performance is poor.

The second option I am looking at is to try loading and unloading the user
controls dynamically - this seems to have some merit but I suspect that it
could end up being quite complex to implement due to the number of controls
and how they interact with each other.

The last option I'm looking at - and also favour - is to store the viewstate
outside of the page. I'm overriding the SavePageStateToPersistenceMedium and
loadPageStateFromPersistenceMedium method of the page to read and write the
viewstate into session state.

This seems to provide a nice quick solution. Due to the use of frames and
popup windows there is a problem (to compound the problem the powers-that-be
also want to be able to allow users to use the New Window option of Internet
explorer so that users can have multiple browser windows viwing the same data
) the upshot being that all these frames, popups and windows all share the
same session details.

I'm sorry the preambles been so long but here is the crux of the problem:
I'm writing the ViewState to and from Session("ViewState") - therefore each
time a page is loaded then it will overwrite Session("ViewState") with its
viewstate. If I have multiple browser windows open is there anyway that each
window can have its own separate session, or to be able to manage the session
state so that conflicts in the session will not occur.

Any comments or advise on this problem will be greatfully received.
Nov 19 '05 #1
1 2946
Well, you can use separate session variables for
different sets of ViewState. But, if you are using
that much ViewState and then storing it in
session, your site quickly eat up
a ton of RAM when traffic goes up.

I'd have to see the actual page in order to
give you any useful suggestions.

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.masterado.net

"SteveComplex" <St**********@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
I'm currently working on a project developing a web application that makes
heavy use of 3rd-party controls, popup windows and frames ( not my design
I
hasten to add ).
Some of the pages make use of several user controls embedded in a tab
control. Needless to say that the page size can be somewhat on the large
size, including a lot of information being stored in viewstate.

I'm currently looking for a solution to resolve the problem of the page
bloat.
My first choice was to redesign the pages to reduce the number of tabs
(and
user controls) on the page - and to adjust where viewstate is used,
however
the powers-that-be like their design and won't change it even though the
performance is poor.

The second option I am looking at is to try loading and unloading the user
controls dynamically - this seems to have some merit but I suspect that it
could end up being quite complex to implement due to the number of
controls
and how they interact with each other.

The last option I'm looking at - and also favour - is to store the
viewstate
outside of the page. I'm overriding the SavePageStateToPersistenceMedium
and
loadPageStateFromPersistenceMedium method of the page to read and write
the
viewstate into session state.

This seems to provide a nice quick solution. Due to the use of frames and
popup windows there is a problem (to compound the problem the
powers-that-be
also want to be able to allow users to use the New Window option of
Internet
explorer so that users can have multiple browser windows viwing the same
data
) the upshot being that all these frames, popups and windows all share the
same session details.

I'm sorry the preambles been so long but here is the crux of the problem:
I'm writing the ViewState to and from Session("ViewState") - therefore
each
time a page is loaded then it will overwrite Session("ViewState") with its
viewstate. If I have multiple browser windows open is there anyway that
each
window can have its own separate session, or to be able to manage the
session
state so that conflicts in the session will not occur.

Any comments or advise on this problem will be greatfully received.

Nov 19 '05 #2

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

Similar topics

2
by: Brad | last post by:
Hi everyone, I've been using ASP on a few different projects over the past year, either using Javascript or VBScript. During that time, I've made use of session variables, but even then, I've...
5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
2
by: Bonj | last post by:
H I've got the following problem - I need to have an aspx page with two frames, although the question isn't necessarily about the workings of the frames, more session variables... the frames consist...
3
by: Nhi Lam | last post by:
Hi, I understand that there are 3 modes in which I can configure the SessionStateModule. What I need is an out of process Session State store with fail over support. The "SQL Server Mode" seems...
4
by: Kent Tegels | last post by:
Okay, so I know I'm doing two evil things: using Frames and storing stuff in Session. I'm a sinner and I'll repent after this project, I promise. But for now, I've got an interesting issue. ...
1
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can...
5
by: ASP.Confused | last post by:
As you can tell from my previous posts on this issue...I'm really confused :-/ I have a few ASP.NET web applications on my web host's "https" server. Our web host has a single "bin" folder for...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
1
by: jamezw | last post by:
I have a web app that uses StateServer to track session. It is cookieless (e.g. session ID in the URL.) We have run into a problem that is like such: we have a page that has multiple frames on it....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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.