I write the following to alert but it is not displaying the alert box what’s wrong in this
protected void Timer1_Tick(object sender, EventArgs e)
{
string str = string.Empty;
str = "Total Count: '" + click + "'";
Response.Write("<Script>alert('" + str + "')</script>");
click = 0;
}
You have nested single quotes, try without: