protected void ondeleteclick(object sender, EventArgs e) { int bookid = Int16.Parse(TextBox1.Text.ToString()); if (bl.deletebooksadmin(bookid) == true) { Response.Redirect("succesremove.aspx"); } else { Page.ClientScript.RegisterStartupScript(this.GetType(), "hwe", "setbookiderror('Bookid not Found');", true); } }