This is my code.. but the literal keeps showing 1.
Could someone help me? thank you!
public partial class _Default : System.Web.UI.Page
{
int x = 0;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
x += 1;
Literal1.Text = Convert.ToString(x);
}