Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 public void Delete(string id)
 {
     testServiceClient.Delete(id);
 }