Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
Contact Page Works in FF but not IE
Old 11-11-2009, 12:45 AM Contact Page Works in FF but not IE
bige2533's Avatar
Skilled Talker

Posts: 79
Name: Eric
Location: Colorado
Trades: 1
Here is the page http://www.trailsticker.com/contact.aspx

It sends and/or errors out fine in FF but doesn't seem to work in IE. Any suggestions?

The code behind
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
using System.Drawing;
using System.Configuration;
using System.Web.Configuration;
using System.Net.Configuration;


public partial class contact : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    protected void sentButton_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            try
            {
                string output = "";

                MailMessage mail = new MailMessage();

                string hostAddress = "mail.trailsticker.com";

                string message = messageTextBox.Text.ToString();
                message = message.Replace(Environment.NewLine, "<br />");

                string fromEmail = emailTextBox.Text.ToString();
                string subject = subjectDropDown.Text.ToString();

                output = "<p>Name: " + nameTextBox.Text.ToString() + ".</p>";
                output += "<p>E-mail: " + emailTextBox.Text.ToString() + ".</p>";
                output += "<p>Subject: " + subjectDropDown.Text.ToString() + ".</p>";
                output += "<p>Message: " + message + ".</p>";

                mail.Subject = subject;
                mail.From = new MailAddress(fromEmail);
                mail.To.Add("xxxxxx@trailsticker.com");
                mail.Body = message;

                mail.IsBodyHtml = true;
                SmtpClient smtp = new SmtpClient(hostAddress);
                smtp.Send(mail);

                Response.Redirect("http://www.trailsticker.com/sent.aspx");
            }

            catch (Exception err)
            {
                notificatoinLabel.Text = "E-mail wasn't sent. There was an exception: " + err.ToString() + ".";
            }
        }
    }
}
__________________

Please login or register to view this content. Registration is FREE
bige2533 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-11-2009, 01:18 AM Re: Contact Page Works in FF but not IE
Skilled Talker

Posts: 98
Trades: 0
I am not sure about the coding. Are you using Blog like wordpress. Then there are plugins like Kontackr that can simply make your contact form easily and sure they must have tested in various browsers.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
sampeterson is offline
Reply With Quote
View Public Profile
 
Old 11-11-2009, 01:27 AM Re: Contact Page Works in FF but not IE
bige2533's Avatar
Skilled Talker

Posts: 79
Name: Eric
Location: Colorado
Trades: 1
Actually, I'm trying to code a contact page for my own site. I'm using asp.net controls with a c# code behind page.
__________________

Please login or register to view this content. Registration is FREE
bige2533 is offline
Reply With Quote
View Public Profile
 
Old 11-12-2009, 02:06 AM Re: Contact Page Works in FF but not IE
bige2533's Avatar
Skilled Talker

Posts: 79
Name: Eric
Location: Colorado
Trades: 1
I've done some googling and there seems to be an issue with the onclick event with IE?? Not sure how to fix it though.
__________________

Please login or register to view this content. Registration is FREE
bige2533 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Contact Page Works in FF but not IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27168 seconds with 12 queries