Looking for some assistance on public statics and if they are the cause of an issue I am facing.
On my code page I have;
public static string FirstName;
Further down on the page, I am using this string as one of my SqlCmd Paramaters (AddWithValue). This is working fine and when the record is saved to the database, it is visible there that the FIrstName was entered in properly.
The problem I am now having is when i made the application publicly available, that the FirstName value that gets entered into the database is not mine. It's someone else's and I am unsure how this is happening.
Is the fact I am declaring this as 'Public' mean that the web server makes this value visible and accessible to other people? I thought from reading other SO pages here, that it was only publicly available to the class it is in.
Looking for some assistance on HOW another persons name could be saved against my record.