protected void SubmitApproval(object sender, EventArgs e) { if (Page.IsValid) { //set string siteName = ""; string fullName = txtFullName.Text; string companyName = txtCompanyName.Text; string orderNumber = txtOrderNumber.Text; string designerName = txtDesigner.Text; string experience = ddlExperience.SelectedValue; string recommendation = ddlRecommend.SelectedValue; string approved = chkConfirm.Checked.ToString().ToUpper(); string comments = txtComments.Text; string shareFeedback = radShareFeedback.SelectedValue.ToUpper(); //Determine Site Name switch (siteID) { case 1: siteName = "EDDM"; break; case 78: siteName = "Staples"; designerName = "not provided"; experience = "not provided"; recommendation = "not provided"; break; case 91: siteName = "Staples"; designerName = "not provided"; experience = "not provided"; recommendation = "not provided"; break; case 93: siteName = "Staples"; designerName = "not provided"; experience = "not provided"; recommendation = "not provided"; break; case 95: siteName = "Staples"; designerName = "not provided"; experience = "not provided"; recommendation = "not provided"; break; case 98: siteName = "RAMP Express"; designerName = "not provided"; experience = "not provided"; recommendation = "not provided"; break; default: siteName = "unknown"; break; } //scrub fullName = Server.HtmlEncode(fullName.Trim()); companyName = Server.HtmlEncode(companyName.Trim()); designerName = Server.HtmlEncode(designerName.Trim()); comments = Server.HtmlEncode(comments.Trim()); //site As String, fullName As String EmailUtility.SendArtApprovalEmail(siteName, fullName, companyName, orderNumber, designerName, experience, recommendation, approved, comments, shareFeedback); pnlApprovalForm.Visible = false; pnlSuccess.Visible = true; litSuccessMessage.Text = "Thank you! Your artwork has now been approved and we will begin the printing process."; } else { pnlError.Visible = true; pnlApprovalForm.Visible = false; litErrorMessage.Text = "Sorry but this form submission is not valid."; } }