Ejemplo n.º 1
0
 protected void btn2_Click(object sender, EventArgs e)
 {
     try
     {
         String name = Request.QueryString["NameOfTheGuide"];
         int    n    = SqldsRajyaPuraskar.Update();
         if (n == 1)
         {
             Response.Write("<script>alert('You are registered Successfully...')</script>");
             Server.Transfer("MainRajyaPuraskarGuide.aspx?NameOfTheGuide='" + name + "'");
             CleartextBoxes(this);
         }
         else
         {
             Response.Write("<script>alert('Please fill the form Correctly')</script>");
         }
     }
     catch (Exception er)
     {
         Response.Write(er.Message);
     }
 }
Ejemplo n.º 2
0
 protected void btn2_Click(object sender, EventArgs e)
 {
     try
     {
         int n = SqldsRajyaPuraskar.Update();
         if (n == 1)
         {
             string SignatureOfScout   = Server.MapPath("RajyaPuraskarSignatureOfScout");
             string SignatureOfScouter = Server.MapPath("RajyaPuraskarSignatureOfScouter");
             fuSignatureOfScout.SaveAs(SignatureOfScout + "\\" + fuSignatureOfScout.FileName);
             fuSignatureOfScouter.SaveAs(SignatureOfScout + "\\" + fuSignatureOfScouter.FileName);
             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.Message);
     }
 }