Page 1 of 1

Submit Button working in Chrome but not IE

Posted: Mon Jan 25, 2016 6:49 am
by ZPCAC
I am working on udating some forms that a user will fill out and then click a submit button to send in their information. Currently i am having success while operating in chrome but in IE the submit button appears to do nothing. Not sure what the problem would be and some assistance would be appreciated !!

Below is my HTML Code for the page :

Code: Select all

%@ Control Language="C#" AutoEventWireup="true" CodeFile="SURVEYUPDATE.ascx.cs" Inherits="AbleCommerce.ConLib.SURVEYUPDATE" %>
<%@ Register Assembly="CommerceBuilder.UI" Namespace="CommerceBuilder.UI.WebControls" TagPrefix="cb" %>
<%--
<conlib>
<summary>Survey Update control</summary>
<param name="Subject" default="Subject">Subject of the email.</param>
<param name="SendTo" default="Sent To">Recipient of the email.</param>
</conlib>
--%>
<asp:UpdatePanel ID="AjaxContactPanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Panel ID="ContactFormPanel" runat="server">
        <table class="inputForm">
            	<tr>
                	<td colspan="2" align="left">
                    <h1>Survey of Your Current Filing Method:</h1>
                    <h3>For your no charge evaluation, please take a moment to fill out and submit our short survey.<h3>
                    </h1></td>
                </tr>
                
                <tr>
              <td width="28%" class="rowHeaderContact" style="width: 25%; padding-left:10px;">
                        Materials Being Stored:
                    </td>
                    <td width="72%"><form id="form1" name="form1" method="post" action="">
                      <asp:DropDownList id="Materials" runat="server" ValidationGroup="Materials">
                        <asp:ListItem Value="" Selected="True">Select a Material</asp:ListItem>
                        <asp:ListItem value ="Letter Size Paper">Letter Size Paper</asp:ListItem>
                        <asp:ListItem value ="Legal Size Paper">Legal Size Paper</asp:ListItem>
                        <asp:ListItem value ="Film / Photos">Film / Photos</asp:ListItem>
                        <asp:ListItem value ="Other">Other</asp:ListItem>
                      </asp:DropDownList>
                      <asp:RequiredFieldValidator ID="MaterialsRequired" runat="server" ControlToValidate="Materials"
                            ErrorMessage="Materials Being Stored is required" ToolTip="Materials Being Stored is required" Display="Dynamic"
                            Text="*" EnableViewState="False" validationgroup="ContactUs"></asp:RequiredFieldValidator>
                  </form></td>
                </tr>
                <tr>
                    <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">
                        Size Expansion:
                    </td>
                    <td>
                        <asp:TextBox ID="SizeExpansion" runat="server" Width="250px" ></asp:TextBox>
                        <asp:RequiredFieldValidator ID="SizeExpansionRequired" runat="server" ControlToValidate="SizeExpansion"
                            ErrorMessage="Size Expansion is required" ToolTip="Size Expansion is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">
                        Color(s):
                    </td>
                    <td>
                    <asp:DropDownList id="colors" runat="server" ValidationGroup="colors">
                                <asp:ListItem Value="" Selected="True">Select a Color</asp:ListItem>
                                <asp:ListItem value ="None">None  </asp:ListItem>
                                <asp:ListItem value ="Blue">Blue</asp:ListItem>
                                <asp:ListItem value ="Gray">Gray</asp:ListItem>
                                <asp:ListItem value ="Green">Green</asp:ListItem>
                                <asp:ListItem value ="Red">Red</asp:ListItem>
                                <asp:ListItem value ="Yellow">Yellow</asp:ListItem>
                              </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="colorsRequired" runat="server" ControlToValidate="colors"
                        ErrorMessage="A color is required" ToolTip="A color is required" Display="Dynamic"
                        Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator>
                    
                    <asp:DropDownList ID="colorList2" runat="server" validationgroup="colorList2">
                      <asp:ListItem Value="" Selected="True">Select a Color</asp:ListItem>
                      <asp:ListItem Value ="None">None</asp:ListItem>
                      <asp:ListItem Value ="Blue">Blue</asp:ListItem>
                      <asp:ListItem Value ="Gray">Gray</asp:ListItem>
                      <asp:ListItem Value ="Green">Green</asp:ListItem>
                      <asp:ListItem Value ="Red">Red</asp:ListItem>
                      <asp:ListItem Value ="Yellow">Yellow</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="colorList2Required" runat="server" ControlToValidate="colorList2"
                        ErrorMessage="A color is required" ToolTip="A color is required" Display="Dynamic"
                        Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>

            	<tr>
                	<td colspan="2" align="left">
                    <h3>Storage</h3>
                    </td>
                </tr>
                
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">File Folder:</td>
                  <td><asp:DropDownList id="FileFolder" runat="server" ValidationGroup="FileFolder">
                    <asp:ListItem Value="" Selected="True">Select a File Folder</asp:ListItem>
                    <asp:ListItem value ="Top Tab">Top Tab</asp:ListItem>
                    <asp:ListItem value ="End Tab">End Tab</asp:ListItem>
                    <asp:ListItem value ="Hanging">Hanging</asp:ListItem>
                  </asp:DropDownList>
                  <asp:RequiredFieldValidator ID="FileFolderRequired" runat="server" ControlToValidate="FileFolder"
                            ErrorMessage="A File Folder is required" ToolTip="A File Folder is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator> </td>
                </tr>
                <tr>
                    <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">Fasteners:</td>
                    <td><asp:DropDownList id="Fasteners" runat="server" ValidationGroup="Fasteners">
                      <asp:ListItem Value="" Selected="True">Select a Fastener</asp:ListItem>
                      <asp:ListItem value ="None">None</asp:ListItem>
                      <asp:ListItem value ="1">1</asp:ListItem>
                      <asp:ListItem value ="2">2</asp:ListItem>
                      <asp:ListItem value ="Other">Other</asp:ListItem>
                    </asp:DropDownList>                      <asp:RequiredFieldValidator ID="fastenersRequired" runat="server" ControlToValidate="fasteners"
                            ErrorMessage="A fastener is required" ToolTip="A fastener is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator>
                        
                  </td>
                </tr>
                <tr>
                    <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">
                        Pockets:
                    </td>
                    <td><asp:DropDownList id="Pockets" runat="server" ValidationGroup="Pockets">
                      <asp:ListItem Value="" Selected="True">Select a Pocket</asp:ListItem>
                      <asp:ListItem value ="None">None</asp:ListItem>
                      <asp:ListItem value ="Top Loading">Top Loading</asp:ListItem>
                      <asp:ListItem value ="Side Loading">Side Loading</asp:ListItem>
                  </asp:DropDownList>                      <asp:RequiredFieldValidator ID="PocketslsRequired" runat="server" ControlToValidate="Pockets"
                            ErrorMessage="Pockets is required" ToolTip="Pockets is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">Partitions:</td>
                  <td><asp:DropDownList id="Partitions" runat="server" ValidationGroup="Partitions">
                    <asp:ListItem Value="" Selected="True">Select a Partition</asp:ListItem>
                    <asp:ListItem value ="None">None</asp:ListItem>
                    <asp:ListItem value ="1">1</asp:ListItem>
                    <asp:ListItem value ="2">2</asp:ListItem>
                    <asp:ListItem value ="3">3</asp:ListItem>
                  </asp:DropDownList>
                  <asp:RequiredFieldValidator ID="PartitionsRequired" runat="server" ControlToValidate="Partitions"
                            ErrorMessage="Partitions required" ToolTip="Partitions required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator>
                  <asp:DropDownList id="Partitions2" runat="server" ValidationGroup="Partitions2">
                    <asp:ListItem Value="" Selected="True">Select a Fastener Per Panal</asp:ListItem>
                    <asp:ListItem value ="None">None</asp:ListItem>
                    <asp:ListItem value ="1">1</asp:ListItem>
                    <asp:ListItem value ="2">2</asp:ListItem>
                  </asp:DropDownList>
                  <asp:RequiredFieldValidator ID="PartitionsRequired2" runat="server" ControlToValidate="Partitions2"
                            ErrorMessage="Partitions required" ToolTip="Partitions required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">Indexing Installed:</td>
                  <td><asp:DropDownList id="Indexing" runat="server" ValidationGroup="Indexing">
                    <asp:ListItem Value="" Selected="True">Select Number of Tabs Per Set</asp:ListItem>
                    <asp:ListItem value ="None">None</asp:ListItem>
                    <asp:ListItem value ="4">4</asp:ListItem>
                    <asp:ListItem value ="5">5</asp:ListItem>
                    <asp:ListItem value ="6">6</asp:ListItem>
                    <asp:ListItem value ="7">7</asp:ListItem>
                    <asp:ListItem value ="8">8</asp:ListItem>
                    <asp:ListItem value ="9">9</asp:ListItem>
                    <asp:ListItem value ="10">10</asp:ListItem>
                    <asp:ListItem value ="Other">Other</asp:ListItem>
                  </asp:DropDownList>
                  <asp:RequiredFieldValidator ID="IndexingRequired" runat="server" ControlToValidate="Indexing"
                            ErrorMessage="Indexing required" ToolTip="Indexing required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;"><h3>Record Management</h3></td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">
                        Filing Method:</td>
                    <td><asp:DropDownList ID="FilingMethod" runat="server" validationgroup="FilingMethod">
                      <asp:ListItem Value="" Selected="True">Select a Filing Method</asp:ListItem>
                      <asp:ListItem Value ="Alphabetic">Alphabetic</asp:ListItem>
                      <asp:ListItem Value ="Numerical">Numerical</asp:ListItem>
                      <asp:ListItem Value ="Chronological">Chronological</asp:ListItem>
                    </asp:DropDownList>                      <asp:RequiredFieldValidator ID="FilingMethodRequired" runat="server" ControlToValidate="FilingMethod"
                            ErrorMessage="Filing Method is required" ToolTip="Filing Method is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">Color Coding:</td>
                  <td><asp:DropDownList ID="ColorCoding" runat="server" validationgroup="ColorCoding">
                    <asp:ListItem Value="" Selected="True">Select a Color Coding Option</asp:ListItem>
                    <asp:ListItem Value ="Yes">Yes</asp:ListItem>
                    <asp:ListItem Value ="No">No</asp:ListItem>
                  </asp:DropDownList>
                  <asp:RequiredFieldValidator ID="ColorCodingRequired" runat="server" ControlToValidate="ColorCoding"
                            ErrorMessage="Color Coding is required" ToolTip="Color Coding is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;"><h3>Record Information</h3></td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;"> Existing Number of Monthly Records:</td>
                  <td><asp:DropDownList ID="MonthlyRecord" runat="server" validationgroup="MonthlyRecord">
                    <asp:ListItem Value="" Selected="True">Select a Monthly Record Amount</asp:ListItem>
                    <asp:ListItem Value ="Less than 25">Less than 25</asp:ListItem>
                    <asp:ListItem Value ="25 - 99">25 - 99</asp:ListItem>
                    <asp:ListItem Value ="100 - 499">100 - 499</asp:ListItem>
                  </asp:DropDownList>                    <asp:RequiredFieldValidator ID="MonthlyRecordRequired" runat="server" ControlToValidate="MonthlyRecord"
                            ErrorMessage="Number of Records is required" ToolTip="Number of Records is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;"> Annual Average:</td>
                  <td><asp:TextBox ID="Annually" runat="server" Width="250px" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="AnnuallyRequired" runat="server" ControlToValidate="Annually"
                            ErrorMessage="Annually number of Records is required" ToolTip="Annually number of Records is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">Frequency of Record Access:<br /></td>
                  <td><asp:DropDownList ID="FrequencyofUse" runat="server" validationgroup="FrequencyofUse">
                    <asp:ListItem Value="" Selected="True">Select a Frequency of Record Access</asp:ListItem>
                    <asp:ListItem Value ="Daily">Daily</asp:ListItem>
                    <asp:ListItem Value ="Monthly">Monthly</asp:ListItem>
                    <asp:ListItem Value ="Quarterly">Quarterly</asp:ListItem>
                    <asp:ListItem Value ="Annually">Annually</asp:ListItem>
                  </asp:DropDownList></td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">Volume or Thickness Required Per Folder / Record  Life:</td>
                  <td><asp:DropDownList ID="VolumeList" runat="server" validationgroup="VolumeList">
                    <asp:ListItem Value="" Selected="True">Select a Volume</asp:ListItem>
                      <asp:ListItem value ="Less than 25">Less than 25</asp:ListItem>
                      <asp:ListItem Value ="25-49">25-49</asp:ListItem>
                      <asp:ListItem Value ="50-99">50-99</asp:ListItem>
                      <asp:ListItem Value ="100-249">100-249</asp:ListItem>
                      <asp:ListItem Value ="250+">250+</asp:ListItem>
                    </asp:DropDownList>
                  <asp:RequiredFieldValidator ID="VolumeRequired2" runat="server" ControlToValidate="VolumeList"
                        ErrorMessage="A volume is required" ToolTip="A volume is required" Display="Dynamic"
                        Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator></td>
                </tr>

                <tr>
                    <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">
                        <asp:Label ID="Submit_nameLabel" Text="Submitters Name:" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="Submit_name" runat="server" Width="250px" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="SubmitNameRequired" runat="server" ControlToValidate="Submit_name"
                            ErrorMessage="Submitters Name is required" ToolTip="Submitters Name is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator>

                    </td>
                </tr>
                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;"><asp:Label ID="SubmitEmailLabel" Text="Submitters E-mail:" runat="server"></asp:Label></td>
                  <td><asp:TextBox ID="Email" runat="server" Width="250px" ValidationGroup="ContactUs"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="EmailRequiredSubmit" runat="server" ControlToValidate="Email"
                            ErrorMessage="Email is Required" ValidationGroup="ContactUs">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="EmailFormatRequiredSubmit" runat="server" ControlToValidate="Email"
                            ErrorMessage="Valid Email address required" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            validationgroup="ContactUs">*</asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">
                        Facility:
                    </td>
                    <td>
                        <asp:TextBox ID="Submit_Facility" runat="server" Width="250px" ></asp:TextBox>
                        <asp:RequiredFieldValidator ID="SubmitFacilityRequired" runat="server" ControlToValidate="Submit_Facility"
                            ErrorMessage="Facility is required" ToolTip="Facility is required" Display="Dynamic"
                            Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator>

                    </td>
                </tr>

                <tr>
                    <td class="rowHeaderContact" style="width: 25%; padding-left:10px;">
                        
                    </td>
                    <td>
                        
                    </td>
                </tr>


                <tr>
                  <td class="rowHeaderContact" style="width: 25%; padding-left:10px;"> Notes:</td>
                  <td><form id="form2" name="form2" method="post" action="">
                    <asp:TextBox ID="Notes" runat="server" Width="250px" Height="100px" ></asp:TextBox>
                  </form></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Panel ID="CaptchaPanel" runat="server">
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="CaptchaInput" runat="server" Width="80px" EnableViewState="False"
                                            ValidationGroup="ContactUs"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="CaptchaRequired" runat="server" ControlToValidate="CaptchaInput"
                                            ErrorMessage="You must enter the verification number" ToolTip="You must enter the number in the image."
                                            Display="Dynamic" Text="*" EnableViewState="False" ValidationGroup="ContactUs"></asp:RequiredFieldValidator><br />
                                        <asp:PlaceHolder ID="phCaptchaValidators" runat="server" EnableViewState="false"></asp:PlaceHolder>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:PlaceHolder ID="trCaptchaImage" runat="server">
                                            <div align="center">
                                                <div align="left" style="width: 300px">
                                                    <asp:Label ID="CaptchaImageLabel" runat="server" Text="Verification Number:" AssociatedControlID="CaptchaImage"
                                                        SkinID="FieldHeader" EnableViewState="False"></asp:Label><br />
                                                    <cb:CaptchaImage ID="CaptchaImage" runat="server" Height="70px" Width="250px" EnableViewState="False" /><br />
                                                    <asp:LinkButton ID="ChangeImageLink" runat="server" Text="different image" CausesValidation="false"
                                                        OnClick="ChangeImageLink_Click" EnableViewState="False"></asp:LinkButton><br />
                                                </div>
                                            </div>
                                        </asp:PlaceHolder>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:ValidationSummary ID="ContactValidationSummary" runat="server" EnableViewState="false"
                            ValidationGroup="ContactUs" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="MessageLabel" runat="server"></asp:Label></td>
                </tr>                
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="Submit" runat="server" Text="Submit" OnClick="Submit_Click" ValidationGroup="ContactUs" /></td>
                </tr>

            </table>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>


Here is the code behind file :

Code: Select all

namespace AbleCommerce.ConLib
{
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CommerceBuilder.Utility;
using System.Text;
using System.Net;
using System.Net.Mail;
using CommerceBuilder.Common;
using CommerceBuilder.Stores;
using CommerceBuilder.Messaging;
using System.ComponentModel;
using CommerceBuilder.UI;
[Description("Survey Update Control")]
public partial class SURVEYUPDATE : System.Web.UI.UserControl
{
    private bool _enableCaptcha = true;

    [Personalizable(), WebBrowsable()]
    public bool EnableCaptcha
    {
        get { return _enableCaptcha; }
        set { _enableCaptcha = value; }
    }

    private string _subject = "Zack Products Survey";

    [Personalizable(), WebBrowsable()]
    [Browsable(true), DefaultValue("Subject")]
    [Description("Subject of the email.")]
    public string Subject
    {
        get { return _subject; }
        set { _subject = value; }
    }

    private string _successMessage = "Thank you for contacting Zack Products. Your message has been submitted, please allow 24 hours for a reply to your email.";

    private string _failureMessage = "We are experiencing some problems at this time and can not process your request.";

    private string _sendTo;

    [Personalizable(), WebBrowsable()]
    [Browsable(true), DefaultValue("Sent To")]
    [Description("Recipient of the email.")]
    public string SendTo
    {
        get { return _sendTo; }
        set { _sendTo = value; }
    }
    
    protected void Page_Load(object sender, EventArgs e)
    {
        CaptchaPanel.Visible = EnableCaptcha;
    }

    private void RefreshCaptcha()
    {
        CaptchaImage.ChallengeText = StringHelper.RandomNumber(6);
    }

    protected void ChangeImageLink_Click(object sender, EventArgs e)
    {
        RefreshCaptcha();
    }

    protected void Submit_Click(object sender, EventArgs e)
    {
        if(EnableCaptcha)
        {
            if (CaptchaImage.Authenticate(CaptchaInput.Text))
            {
                SubmitComment();
                CaptchaInput.Text = "";
                RefreshCaptcha();    
            }
            else
            {
                //CAPTCHA IS VISIBLE AND DID NOT AUTHENTICATE
                CustomValidator invalidInput = new CustomValidator();
                invalidInput.Text = "*";
                invalidInput.ErrorMessage = "You did not input the verification number correctly.";
                invalidInput.IsValid = false;
                phCaptchaValidators.Controls.Add(invalidInput);
                CaptchaInput.Text = "";
                RefreshCaptcha();    
            }
        }
        else
        if(!EnableCaptcha)
        {
            SubmitComment();
        }
    }

    protected void SubmitComment() 
    {
        Store store = AbleContext.Current.Store;
        StoreSettingsManager settings = store.Settings;
        MailMessage mailMessage = new MailMessage();

        if (String.IsNullOrEmpty(SendTo))
            mailMessage.To.Add(settings.DefaultEmailAddress);
        else
            mailMessage.To.Add(SendTo);
        mailMessage.From = new System.Net.Mail.MailAddress(Email.Text);
        mailMessage.Subject = Subject;
        mailMessage.Body += "Materials Being Stored : " + Materials.Text + Environment.NewLine;
		mailMessage.Body += "Size Expansion : " + SizeExpansion.Text + Environment.NewLine;
        mailMessage.Body += "Color(s) : " + colors.Text + Environment.NewLine;
        mailMessage.Body += "Color(s) : " + colorList2.Text + Environment.NewLine;
		mailMessage.Body += "File Folders : " + FileFolder.Text + Environment.NewLine;
		mailMessage.Body += "Fasteners : " + Fasteners.Text + Environment.NewLine;
        mailMessage.Body += "Pockets : " + Pockets.Text + Environment.NewLine;
        mailMessage.Body += "Partitions : " + Partitions.Text + Environment.NewLine;
		mailMessage.Body += "Fasteners Per Panal : " + Partitions2.Text + Environment.NewLine;
		mailMessage.Body += "Indexing Installed : " + Indexing.Text + Environment.NewLine;
		mailMessage.Body += "Filing Method : " + FilingMethod.Text + Environment.NewLine;
		mailMessage.Body += "Color Coding : " + ColorCoding.Text + Environment.NewLine;
		mailMessage.Body += "Existing Number of Records Monthly : " + MonthlyRecord.Text + Environment.NewLine;
		mailMessage.Body += "Annually : " + Annually.Text + Environment.NewLine;
		mailMessage.Body += "Frequency of Record Access : " + FrequencyofUse.Text + Environment.NewLine;
		mailMessage.Body += "Volume or Thickness Required Per Folder / Record  Life : " + VolumeList.Text + Environment.NewLine;
		mailMessage.Body += "Submitters Name : " + Submit_name.Text + Environment.NewLine;
	    mailMessage.Body += "Submitters Email : " + Email.Text + Environment.NewLine;
		mailMessage.Body += "Facility : " + Submit_Facility.Text + Environment.NewLine;
        mailMessage.Body += "Notes : " + Notes.Text + Environment.NewLine;
		mailMessage.BodyEncoding = System.Text.Encoding.UTF8;
        mailMessage.IsBodyHtml = false;
        mailMessage.Priority = System.Net.Mail.MailPriority.High;
        SmtpSettings smtpSettings = SmtpSettings.DefaultSettings;

        try
        {
            EmailClient.Send(mailMessage);
            MessageLabel.Text = _successMessage;
            MessageLabel.ForeColor = System.Drawing.Color.Red;
			Response.Redirect("~/confirmrequest.aspx");
        }
        catch (Exception exp)
        {
            Logger.Error("ContactUs Control Exception: Exp" + Environment.NewLine + exp.Message);
            MessageLabel.Text = _failureMessage;
            MessageLabel.ForeColor = System.Drawing.Color.Green; 
        }
    }

    private string GetMessage()
    {
        StringBuilder body = new StringBuilder();
        body.Append("Materials Being Stored : " + Materials.Text + Environment.NewLine);
		body.Append("Size Expansion : " + SizeExpansion.Text + Environment.NewLine);
        body.Append("Color(s) : " + colors.Text + Environment.NewLine);
        body.Append("Color(s) : " + colorList2.Text + Environment.NewLine);
		body.Append("File Folders : " + FileFolder.Text + Environment.NewLine);
		body.Append("Fasteners : " + Fasteners.Text + Environment.NewLine);
        body.Append("Pockets : " + Pockets.Text + Environment.NewLine);
        body.Append("Partitions : " + Partitions.Text + Environment.NewLine);
		body.Append("Fasteners Per Panal : " + Partitions2.Text + Environment.NewLine);
		body.Append("Filing Method : " + FilingMethod.Text + Environment.NewLine);
		body.Append("Color Coding : " + ColorCoding.Text + Environment.NewLine);
		body.Append("Existing Number of Records Monthly : " + MonthlyRecord.Text + Environment.NewLine);
		body.Append("Annually : " + Annually.Text + Environment.NewLine);
		body.Append("Frequency of Record Access : " + FrequencyofUse.Text + Environment.NewLine);
		body.Append("Volume or Thickness Required Per Folder / Record  Life : " + VolumeList.Text + Environment.NewLine);
		body.Append("Submitters Name : " + Submit_name.Text + Environment.NewLine);
	    body.Append("Submitters Email : " + Email.Text + Environment.NewLine);
		body.Append("Facility : " + Submit_Facility.Text + Environment.NewLine);
		body.Append("Notes : " + Notes.Text + Environment.NewLine);
		return body.ToString();
    }
  }
}
Thank you!!

Re: Submit Button working in Chrome but not IE

Posted: Mon Feb 01, 2016 6:10 am
by nadeem
For me, your code work just fine in IE 11. May be you are using some other version of IE that is causing this? Check IE script console for any possible java-script related issues. You can do so by launching the "Developer Tools" (F12).