Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Using session variable in a user control (.ascx file)

$
0
0

Hi there,

I have received a piece of code in which there is a session variable in a user control file (.ascx file). I have to use this user control at 2 different places in ASP.NET application. 

Problem is if an user opens these 2 pages concurrently and tries to update values on those pages, there will be mixing of values for session variable. Is there any way to address this issue ?

I am open to replace session variables if there is any better alternative. I would like to keep the use of session variables exclusive to the page on which its being used. Please let me know.

Thanks,

Amit


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>