D
dougloj
Howdy.
I have an ASP.NET application written in C#. I know this sounds nuts,
but instead of having multiple .aspx files to display various parts of
the Web site, I do almost everything on my default.aspx page. Instead
of redirecting to various .aspx files, I change the Visible attribute
of various asp.tables to True and False to change the display. Yes, my
default.aspx and default.aspx.cs files are HUGE.
I have found out that when two sessions of my ASP.NET application are
running on the same server, variables from one session are taking on
values from variables in the other session.
The reason that variable values are getting mixed up between the
sessions may be because I use static variables. I thought the static
variables would automatically be independent between sessions. Does my
use of static variables seem like it may be causing the variable mix
up? Does anybody know if there is a way to correct the problem? Is
there anything in the server configuration or Web.config file to fix
the problem? Should I change my static variables to session variables?
I know I should restructure my stuff to use individual .aspx files. If
anybody has ANY ideas as to what I can do in the interim, I'd GREATLY
appreciate hearing your thoughts.
I have an ASP.NET application written in C#. I know this sounds nuts,
but instead of having multiple .aspx files to display various parts of
the Web site, I do almost everything on my default.aspx page. Instead
of redirecting to various .aspx files, I change the Visible attribute
of various asp.tables to True and False to change the display. Yes, my
default.aspx and default.aspx.cs files are HUGE.
I have found out that when two sessions of my ASP.NET application are
running on the same server, variables from one session are taking on
values from variables in the other session.
The reason that variable values are getting mixed up between the
sessions may be because I use static variables. I thought the static
variables would automatically be independent between sessions. Does my
use of static variables seem like it may be causing the variable mix
up? Does anybody know if there is a way to correct the problem? Is
there anything in the server configuration or Web.config file to fix
the problem? Should I change my static variables to session variables?
I know I should restructure my stuff to use individual .aspx files. If
anybody has ANY ideas as to what I can do in the interim, I'd GREATLY
appreciate hearing your thoughts.