Barry,
Using static variables and/or the global.aspx page is not a good way to do
this. By doing so you have created application level variables. These
variables are not independent of each user but are shared by all users of
the application. Remember that this is the web. One single application with
many users. Therefore you have to use threadsafe variables for each user
that will be independent of all the others. The easiest way to do this would
be to store the information in session variables and if you still want to
keep this information in the global.aspx file you may use the
Session_OnStart method in the global.aspx:
Session["key"] = "value";
Regards,
--
S. Justin Gengo
Web Developer / Programmer
Free code library:
http://www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"barry" <so*****@somewhere.com> wrote in message
news:ei***************@TK2MSFTNGP05.phx.gbl...
Hi
I keep username and password in Global.aspx
static public string un = "";
static public string pw = "";
after a user logs in i update un and pw with the input values.
but if i start another instance of the webpage in a new instance of the
webbrowser eg http://localhost/default.aspx the value of un and pw is
changed to new values.
But if i refresh the first instance of webpage value of the 2nd instance
of un and pw is displayed.
how can i solve this problem.
barry