I need a variable that is available from any function in my code, but is different to all users.
so i wrote:
public class classedelcappero
{
private string frasehiragana = String.Empty;
public string ohiragana
{
get
{
return frasehiragana;
}
set
{
frasehiragana = value;
}
}
}
and then i put this in my function:
protected void Page_Load(object sender, EventArgs e)
{
classedelcappero chepalle = new classedelcappero();
string frasehiragana = chepalle.ohiragana;
}
and it works... but if i access it from another function, like
protected void ButtonRiprova_Click(object sender, EventArgs e)
the value is empty... is that ok?
what to do? Use Session variables?