Posted on: 11/26/2012 12:47:43 AM | Views : 428

int clickCount; protected void btnSubmit_Click(object sender, EventArgs e) { try { clickCount = Convert.ToInt32(Session["ClickCount"]); clickCount++; } catch { clickCount = 1; } Session["ClickCount"] = clickCount; // if clickcount is greater then 4 i want to block the user simple updating the DB if (clickCount >=4) { // Block users updateUser( );                 btnSubmit.Visible = false; lblCounter.Text =& ...

Go to the complete details ...