Exemplo n.º 1
0
 protected void btn2_Click(object sender, EventArgs e)
 {
     try
     {
         int n = SqlDsKhariKamai.Update();
         if (n == 1)
         {
             Response.Write("<script>alert('Data Inserted Successfully')</script>");
             txtDistContri.Text  = "";
             txtEmailId.Text     = "";
             txtIUnitContri.Text = "";
             txtPasword.Text     = "";
             txtStateContri.Text = "";
             txtTotalContri.Text = "";
         }
         else
         {
             Response.Write("<script>alert('Please fill the form Correctly')</script>");
         }
     }
     catch (Exception er)
     {
         Response.Write(er);
     }
 }
 protected void btn2_Click(object sender, EventArgs e)
 {
     try
     {
         int n = SqlDsKhariKamai.Update();
         if (n == 1)
         {
             Response.Write("<script>alert('Data Inserted Successfully')</script>");
         }
         else
         {
             Response.Write("<script>alert('Please fill the form Correctly')</script>");
         }
     }
     catch (Exception er)
     {
         Response.Write(er);
     }
 }