I have a page level variable marked as public. It is called claimid. It is used as an input parameter a lot in my codebehind for pulling back information. (see this below) My question: Is this thread safe?
I ask because we have had issues in the past with public static
variables being used and the wrong information showing up when multiple users are accessing the page. Is there any risk of the same thing happening with the below scenario? Any advice would be greatly appreciated.
public partial class ClaimUpdate : Holding
public int claimid;
protected void Page_Load(object sender, EventArgs e)
claimid = Convert.ToInt32(Request.Querystring["claimid"]);
// use claim id all over the place in different events once retrieved