I am new to asp.net. I am creating a ASP.net website using VB.net. So here\'s my problem
Dim myCounter as Integer = 0 Protected Sub Button1_Click(ByVal sender A
Put this code in your Button Click Event
int count=0; count++; ViewState["count"] = Convert.ToInt32(ViewState["count"]) + count; Label1.Text = ViewState["count"].ToString();