Example #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            RegexUtility.emailRegexUtil myRegex = new emailRegexUtil();

              if (myRegex.IsValidEmail(userEmail.Value.ToString()))
              {
                  Session["client_name"] = userName.Value.ToString();
                  Session["client_phone"] = userPhone.Value.ToString();
                  Session["client_email"] = userEmail.Value.ToString();
                  Session["client_Message"] = userMessage.Value.ToString();

                  SendManagementEmails();
                   Response.Redirect("/about/response.aspx?a=generalcomment");
              }
        }
Example #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            RegexUtility.emailRegexUtil myRegex = new emailRegexUtil();

               if (myRegex.IsValidEmail(userEmail.Value.ToString()))
            {

                switch (DropDownList1.SelectedItem.Value)
                    {
                        case "$170":
                            userRoomingPreference = "4 Persons/per room";
                            break;
                        case "$185":
                            userRoomingPreference = "3 Persons/per room";
                            break;
                        case "$200":
                            userRoomingPreference = "2 Persons/per room";
                            break;
                        case "$260":
                            userRoomingPreference = "Single room";
                            break;
                        default:

                            break;
                    }

                Session["client_name"] = userName.Value.ToString();
                Session["client_church"] = userChurch.Value.ToString();
                Session["client_state"] = userState.Value.ToString();
                Session["client_phone"] = userPhone.Value.ToString();
                Session["client_email"] = userEmail.Value.ToString();
                Session["client_RoomSelection"] = (string)(userRoomingPreference);
                Session["client_RoomSelection_Payment"] = DropDownList1.SelectedItem.Value.ToString();

                switch (Request.QueryString["a"])
                {
                    case "registration":
                        SendManagementEmails();
                        sendEmailToClient();
                        Response.Redirect("/about/response.aspx?a=registration");
                        break;
                }
            }
               else
               {

               }
        }