Exemple #1
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            int srNo = Int32.Parse(TextBox7.Text);

            ServiceReference1.Service1Client proxy = new ServiceReference1.Service1Client();
            proxy.DeleteDetails(srNo);
            Response.Redirect("Default.aspx");
        }
Exemple #2
0
 protected void Button3_Click1(object sender, EventArgs e)
 {
     if (!TextBox7.Text.Equals(""))
     {
         int srNo = Int32.Parse(TextBox7.Text);
         ServiceReference1.Service1Client proxy = new ServiceReference1.Service1Client();
         proxy.DeleteDetails(srNo);
         Response.Redirect("Default.aspx");
     }
     else
     {
         Label7.Visible = true;
         Label7.Text    = "Please enter ID";
     }
 }