private void SaveInformation() { SubmitClick = false; lblCustomMessage.Text = ""; CoreLibrary.Comment.Controller controller = new CoreLibrary.Comment.Controller(); Comment entComment = new Comment() { Email = tbxeMail.Text, Name = tbxName.Text, CompanyWorking = ddlCompany.SelectedValue, SupervisorRating = rblSupervisorRating.SelectedValue, CompanyOpinionRating = rblCompanyOpinionRating.SelectedValue, WorkEnviromentRating = rblWorkEnviromentRating.SelectedValue, GroupDirectorRating = rblGroupDirectorRating.SelectedValue, SecurityRating = rblSecurityAnswer.SelectedValue, Subject = tbxSubject.Text, CommentSuggestion = tbxComment.Text }; if (controller.Save(entComment)) { if (NewCommentSendMail(entComment)) ScriptManager.RegisterStartupScript(this, this.GetType(), "GlobalAttributes", " alert('La información se envio correctamente');", true); else ScriptManager.RegisterStartupScript(this, this.GetType(), "GlobalAttributes", " alert('La información guarda correctamente, pero hubo problemas en el envio de correo');", true); //Response.Redirect("http://vamsaags.com/"); } }