protected void SubmitProject(string projNo) { try { var usNm = Session["username"].ToString(); var credentials = new NetworkCredential(ConfigurationManager.AppSettings["W_USER"], ConfigurationManager.AppSettings["W_PWD"], ConfigurationManager.AppSettings["DOMAIN"]); Portals sup = new Portals(); sup.Credentials = credentials; sup.PreAuthenticate = true; bool isSubmitted = sup.FnFinalSubmission(usNm, projNo); switch (isSubmitted) { case true: KCDFAlert.ShowAlert("Your Application is Successfully submitted!" + isSubmitted); //send Email Here SendEmail(usNm, projNo); // loadIncompleteApplication(); break; case false: KCDFAlert.ShowAlert("Your Application could not submitted!" + isSubmitted); break; } } catch (Exception ex) { KCDFAlert.ShowAlert(ex.Message); } }