Esempio n. 1
0
 protected void btn2_Click(object sender, EventArgs e)
 {
     try
     {
         int n = SqldsRajyaPuraskar.Insert();
         if (n == 1)
         {
             string photo                        = Server.MapPath("RajyaPuraskarGuideCandidatePhoto");
             string dobCertificate               = Server.MapPath("RajyaPuraskarGuideCandidateDOBCertificate");
             string SignatureOfGuideCaptain      = Server.MapPath("RajyaPuraskarSignatureOfGuideCaptain");
             string SignatureOfApplicant         = Server.MapPath("RajyaPuraskarGuideSignatureOfApplicant");
             string SignatureOfDOC               = Server.MapPath("RajyaPuraskarSignatureOfDOC");
             string SignatureOfDistrictSecretary = Server.MapPath("RajyaPuraskarGuideSignatureOfDistrictSecretary");
             fuphoto.SaveAs(photo + "\\" + fuphoto.FileName);
             fuDateOfBirthCertificate.SaveAs(dobCertificate + "\\" + fuDateOfBirthCertificate.FileName);
             fuSignatureOfGuideCaptain.SaveAs(SignatureOfGuideCaptain + "\\" + fuSignatureOfGuideCaptain.FileName);
             fuSignatureOfApplicant.SaveAs(SignatureOfApplicant + "\\" + fuSignatureOfApplicant.FileName);
             fuSignatureOfDOC.SaveAs(SignatureOfDOC + "\\" + fuSignatureOfDOC.FileName);
             fuSignatureOfDistrictSecretary.SaveAs(SignatureOfDistrictSecretary + "\\" + fuSignatureOfDistrictSecretary.FileName);
             Session.Add("NameOfGuide", txtNameOfTheGuide.Text);
             Response.Write("<script>alert('Data Inserted Successfully')</script>");
             Server.Transfer("RajyaPuraskarGuide2.aspx");
         }
         else
         {
             Response.Write("<script>alert('Please fill the form Correctly')</script>");
         }
     }
     catch (Exception er)
     {
         Response.Write(er.Message);
     }
 }
 protected void btn2_Click(object sender, EventArgs e)
 {
     try
     {
         int n = SqldsRajyaPuraskar.Insert();
         if (n == 1)
         {
             string photo                        = Server.MapPath("RajyaPuraskarScoutCandidatePhoto");
             string dobCertificate               = Server.MapPath("RajyaPuraskarScoutCandidateDOBCertificate");
             string SignatureOfScoutMaster       = Server.MapPath("RajyaPuraskarSignatureOfScoutMaster");
             string SignatureOfApplicant         = Server.MapPath("RajyaPuraskarScoutSignatureOfApplicant");
             string SignatureOfDistrictOrganisor = Server.MapPath("RajyaPuraskarSignatureOfDistrictOrganisor");
             string SignatureOfDistrictSecretary = Server.MapPath("RajyaPuraskarScoutSignatureOfDistrictSecretary");
             fuphoto.SaveAs(photo + "\\" + fuphoto.FileName);
             fuDateOfBirthCertificate.SaveAs(dobCertificate + "\\" + fuDateOfBirthCertificate.FileName);
             fuSignatureOfScoutMaster.SaveAs(SignatureOfScoutMaster + "\\" + fuSignatureOfScoutMaster.FileName);
             fuSignatureOfApplicant.SaveAs(SignatureOfApplicant + "\\" + fuSignatureOfApplicant.FileName);
             fuSignatureOfDistrictOrganisor.SaveAs(SignatureOfDistrictOrganisor + "\\" + fuSignatureOfDistrictOrganisor.FileName);
             fuSignatureOfDistrictSecretary.SaveAs(SignatureOfDistrictSecretary + "\\" + fuSignatureOfDistrictSecretary.FileName);
             Response.Write("<script>alert('Data Inserted Successfully')</script>");
             Server.Transfer("RajyaPuraskarScout2.aspx?NameOfTheScout='" + txtNameOfTheScout.Text + "'");
             CleartextBoxes(this);
         }
         else
         {
             Response.Write("<script>alert('Please fill the form Correctly')</script>");
         }
     }
     catch (Exception er)
     {
         Response.Write(er.Message);
     }
 }
Esempio n. 3
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);
     }
 }
 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);
     }
 }