Click here to Skip to main content
15,881,751 members
Articles / Web Development / ASP.NET

Multiuser problem in Asp.net

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
4 Nov 2012CPOL 4.5K  
Dear friends,Here, i've used public static string A; variable in my application.Suppose, user1 hav A="1" and now user2 come to this form and he has A=2.So, in this case original value of A for user1(which is A=1) replaced with user2(which is now A=2), But i want to keep both of the...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
4 Nov 2012Tiwari Avinash
Why not to hold the value A in a viewstate and use update panels for asynchronous post backs. it will be much helpful in multi user applications
Please Sign up or sign in to vote.
4 Nov 2012Baji Jabbar
Why can't you use "Rdbtn.SelectedValue" directly in the ViewReport() routine. if (Rdbtn.SelectedValue == "1") { crystalReport.Load(Server.MapPath("sample1.rpt")); } else if (Rdbtn.SelectedValue == "2") { ...
Please Sign up or sign in to vote.
5 Nov 2012manognya kota
Hi,Correct me if i am wrong.Did you try usng hidden field? In that way you can make your variable as public string A.Assign the hidden variable while assigning the string variable.On Postback reassign the...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Markcon Engineers
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions