Beispiel #1
0
 protected void btn2_Click(object sender, EventArgs e)
 {
     try
     {
         int n = SqldsNationalDays.Insert();
         if (n == 1)
         {
             Response.Write("<script>alert('Data Inserted Successfully')</script>");
             txtDate.Text    = "";
             txtDayName.Text = "";
         }
         else
         {
             Response.Write("<script>alert('Please fill the form Correctly')</script>");
         }
     }
     catch (Exception er)
     {
         Response.Write(er.Message);
     }
 }