protected void btnDelete_Click(object sender, EventArgs e) { string myStringVariable = "nishant"; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + myStringVariable + "');", true); int id = Convert.ToInt16(HiddenField1.Value); int rowID = Convert.ToInt16(d.Rows[id - 1][0]); ts.Delete(rowID); Response.Redirect("HomePage.aspx"); }
public void Delete(string id) { testServiceClient.Delete(id); }