I'm trying to create a game; When I click a button, I need to go to another page by using Query string, I need to know which button is clicked (Button1), and how many times it's clicked(Turn). Here's my code:
int Turn = 0;
protected void Button1_Click(object sender, EventArgs e)
{
string clickedButton = "Button1";
Turn = Turn ++;
Response.Redirect(string.Format("TheGame.aspx?button={0}&turn={1}", clickedButton , Turn));
}
But the thing is, I can never change my turn, It always stays 0. How can I do so?