Whenever I am using an SqlConnection object and one user has it open, a second user (on a different machine) produces an error saying the SqlConnection is already open.
I set a new instance of SqlConnection, open the connection on each page, and bring info from the DB. at the end of page_load i close the connection. if the second+ user(s) tries to load the page while the first user is still loading their page, all others get the error. I originally had this object at global level, but i have also tried it at session, page, and procedure level. even when declared and opened inside the page_load event, the variable seems to be shared by both users. is there a way to make the varible specific to the session or am i missing a property of the SqlConnection object or something? thanks.
I set a new instance of SqlConnection, open the connection on each page, and bring info from the DB. at the end of page_load i close the connection. if the second+ user(s) tries to load the page while the first user is still loading their page, all others get the error. I originally had this object at global level, but i have also tried it at session, page, and procedure level. even when declared and opened inside the page_load event, the variable seems to be shared by both users. is there a way to make the varible specific to the session or am i missing a property of the SqlConnection object or something? thanks.