3
I have the following code:
r.Write("<th colspan='3' style='text-align:center'><input id='btEmail_" + (n - 1) + "' name='btEmail_" + (n - 1) + "' runat='server' class='btn bg-brownCinc' onclick='btEmail_' type='button' value='Update' /></th>");
that is inside cycle while drawing an undetermined number of buttons (5, 10 or 15 buttons). And I have:
protected void btEmail_Click(object sender, System.EventArgs e)
{
Response.Redirect("Index.aspx");
}
When I try to click one of the many buttons generated nothing happens, that is to say the index page is not opened. What is wrong with this code?