|
| |
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 11/24/2007 11:46:28
quote:
ORIGINAL: onlyme One question - I noticed that your programming requires a username and password for SMTP authentication. I'd rather not put that information into the programming of a page that can be seen by others. Is there an alternative? Thanks again! Hi onlyme and welcome to the forums. Great question. In the world of websites, there are two general kinds of code: client code and server code. Examples of client code are HTML and Javascript. Client code is processed in the user's web browser and is therefore visible to end user (through "View Source"). Server code, on the other hand, is processed on the web server and the actual code is never sent to the user's web browser, only the results of the code. The code is only visible to you, the creator, at design time. When the page is served using a web server, all of the server code is executed and removed from the page and just the resulting HTML is sent. Examples of server code are ASP, ASP.NET, PHP, ColdFusion and many others. My form generator creates ASP.NET code and so your SMTP info is never visible to the end user. See for yourself: click the link below for a live demo of the contact form and do a "View Source" to look at the code. You'll find no SMTP info and no ASP.NET code. http://www.ctrfx.com/form/demo.aspx Hope this helps.
|
|
|
|
onlyme
Posts: 4 Joined: 11/24/2007 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 11/25/2007 15:54:36
Thank you for the quick response. You're too kind to say that my question was a "great question" because it showed that I don't have a clue! Thanks for teaching me the basics and again thanks for invaluable help in getting my contact form done!
|
|
|
|
onlyme
Posts: 4 Joined: 11/24/2007 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 11/27/2007 19:58:44
I tried to use your code on a second site I have up and got stuck! I don't know how to figure out where the problem is with the following. Can you help? Server Error in '/My Web Sites' Application. -------------------------------------------------------------------------------- Control 'Email' of type 'TextBox' must be placed inside a form tag with runat=server. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Control 'Email' of type 'TextBox' must be placed inside a form tag with runat=server. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): Control 'Email' of type 'TextBox' must be placed inside a form tag with runat=server.] System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +214 System.Web.UI.WebControls.TextBox.AddAttributesToRender(HtmlTextWriter writer) +49 System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter writer) +17 System.Web.UI.WebControls.TextBox.Render(HtmlTextWriter writer) +17 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +53 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +294 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +21 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +53 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +294 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24 System.Web.UI.WebControls.MultiView.Render(HtmlTextWriter writer) +23 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +53 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +294 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +21 System.Web.UI.Page.Render(HtmlTextWriter writer) +27 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +53 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +294 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7425
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 12/6/2007 14:04:46
Post the code for the entire page and I'll take a look at it.
|
|
|
|
onlyme
Posts: 4 Joined: 11/24/2007 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 12/6/2007 21:15:33
Thanks for your help! I just emails you the code.
|
|
|
|
intouchweb
Posts: 1 Joined: 12/11/2007 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 12/11/2007 7:04:51
Hi, Firstly, when I submit the form on your own Contact web page I get the error "Due to technical difficulty, your message may NOT have been sent." Is there a problem with the set up of your own form? Now the reason I was trying to contact you...can you please help me... I just wanted you to clarify for me whose smtp mail server /username/password details are actually required here... Dim smtpMailServer As String = "mail.yoursmtp.com" Dim smtpUsername As String = "yourusername" Dim smtpPassword As String = "yourpassword" I am confused because the form is being submitted from the host server, so what would my smtp server details as provided by my ISP have to do with it..? Do I need to get the host server's outgoing mail details or the email recipients details??? I must be doing something wrong because all I get is the same error as your own site.. ! ie "Due to technical difficulty, your message may NOT have been sent." Thanks
|
|
|
|
kraps2312
Posts: 1 Joined: 12/20/2007 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 12/20/2007 13:11:02
Thank you for a very nice Contact Form. Really helps out for those like me new to asp.net. Your form works great for me as a .aspx page on my local host Development server only!! My problem and challenge is my site uses master pages and content pages and the code fails no matter where it is installed. I asume that part code must go to the master page and the rest in the content page. any one else have success using this Contact form with master pages in asp.net? Followup. I have the page now working. I just removed the master page from the content page and have no problems working with the form. It sends emails just fine thru Expression Web local host Development Server but DOES NOT work after the page has been published. I use GoDaddy as a host. Any Ideas??? I have double checked all codes. thanks
< Message edited by kraps2312 -- 12/21/2007 20:17:15 >
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 12/31/2007 17:35:12
Try using relay-hosting.secureserver.net for the SMTP server. The STMP server “relay-hosting.secureserver.net” belongs to GoDaddy and is apparently the only SMTP server they allow to use with ASP.net email solutions.
|
|
|
|
miket007
Posts: 1 Joined: 1/5/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 1/5/2008 5:19:12
Hi to all at OutFront, firstly may I say that this contact form is very good exellant! But like the Kraps2312, I to have trouble adding the result to another webpage.aspx. He said he took out the master page from the content page, what did you mean by that. Thanks I'm new to ASP.net and visual web developer
|
|
|
|
omegaman
Posts: 2 Joined: 3/15/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 4/7/2008 19:46:43
quote:
ORIGINAL: intouchweb Dim smtpMailServer As String = "mail.yoursmtp.com" Dim smtpUsername As String = "yourusername" Dim smtpPassword As String = "yourpassword" Thsi is what I use and it works for me smtpMailServer "localhost" smtpUsername this is what you use as a login to email smtpPassword the password for this email account Hope this helps ya
|
|
|
|
nucrime
Posts: 2 Joined: 4/12/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 4/12/2008 16:50:07
I hope this error isn't too basic and that someone can help me. I am trying to use the form creator but I get the following error: Error Creating Control - YourForm The ID 'State' is already used by another control. Does anyone have any ideas? Thanks in advance
|
|
|
|
Mike54
Posts: 4847 Joined: 3/26/2001 From: Way Up Over Status: online
|
RE: Free Contact Form Generator for Expression Web - 4/22/2008 9:13:54
quote:
Error Creating Control - YourForm The ID 'State' is already used by another control. You included both "form fields" for including a State in the email. Remove one or the other of the fields or open your page in code view and rename one of them to state1 (in 2 places).
_____________________________
Who was the first guy that looked at a cow and said, "I think that I'll drink whatever comes out of those things when I squeeze them"? New photogalleries, stop by sometime.
|
|
|
|
nucrime
Posts: 2 Joined: 4/12/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 4/22/2008 15:36:35
Thanks for your help!! So that problem is resolved, but now I'm getting: -------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30456: 'SubmitForm_Click' is not a member of 'ASP.about_tkk_contact_aspx'. Source Error: Line 217: <br /> Line 218: <br /> Line 219: <asp:Button ID="SubmitForm" runat="server" OnClick="SubmitForm_Click" Text="Submit Form" /> Line 220: <br /> Line 221: </asp:View> ----------------------------------------- As you can tell, I've renamed the file "about_tkk_contact" I'm super new to this as you can probably tell. I really appreciate all of the help! Ken
|
|
|
|
SheSharp
Posts: 1 Joined: 4/26/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 4/26/2008 11:00:08
RED FLAG! The code in this form requires the Username and Password to your web host control panel. Nobody, but nobody should request this information. The person who created this form, whose name is imbedded in the code, will have access to your control panel (and possibly the credit card you used to set up the account) as will anyone who hacks into your code page. I have never seen any mail code, form or otherwise, that requests this vital information for mail to be delivered. Please look into Jmail, a widely used free mail forwarding program, and note the simplicity of their code.
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 4/26/2008 11:24:22
quote:
ORIGINAL: SheSharp RED FLAG! The code in this form requires the Username and Password to your web host control panel. Nobody, but nobody should request this information. The person who created this form, whose name is imbedded in the code, will have access to your control panel (and possibly the credit card you used to set up the account) as will anyone who hacks into your code page. I have never seen any mail code, form or otherwise, that requests this vital information for mail to be delivered. Please look into Jmail, a widely used free mail forwarding program, and note the simplicity of their code. Woha, hold on there SheSharp. Where are you getting the idea that this form requires the username and password to your web host control?! That is simply not true.
|
|
|
|
SMaitz
Posts: 1 Joined: 2/5/2004 From: Sam Status: offline
|
RE: Free Contact Form Generator for Expression Web - 5/8/2008 19:13:58
I went to your site and the form works great. I do have one question - Is there a way to configure the e-mail so it's not line text? I attempted to add some code but the form didn't like it. I was attempting to make the e-mail format html so it would be easier to read. Any suggestions?
|
|
|
|
sarfdesign
Posts: 1 Joined: 6/16/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 6/16/2008 4:14:56
hi friend, first of all thnkz for the gr8 form i m searching since long. but now i m facing problem. i did as per ur instruction and uploaded in my webserver. getting this error. -------- Server Error in '/' Application. -------------------------------------------------------------------------------- Using themed css files requires a header control on the page. (e.g. <head runat="server" />). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server" />). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server" />).] System.Web.UI.PageTheme.SetStyleSheet() +1948966 System.Web.UI.Page.OnInit(EventArgs e) +2009808 System.Web.UI.Control.InitRecursive(Control namingContainer) +321 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692 --------- plz help me i m a designer thats why i cant figure it out I will be thankful to u. waiting for ur reply Regards, Sarfaraz
|
|
|
|
Mollee
Posts: 1 Joined: 7/1/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 7/1/2008 9:30:43
So, why does the code have the username and password? If I house my own web server, is this required? And, what happens if I leave those lines out? Shouldn't the contact email just be sent to the sendresultsto string? I'm new at asp.net, have had some java and c++, and I'm just a little confused about these lines of the code. Thanks!
|
|
|
|
cb aspnet newbie
Posts: 2 Joined: 7/23/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 7/23/2008 19:07:24
Hello, First let me say that your form is amazing. I would have paid for this form generator. Great great product. Ok, now to reveal my newbieness. I have just entered the asp.net foray and am, like everyone having trouble with it. So I loaded your form, following the steps (even changing the c# to VB). it uploads fine to my windows server (which does support asp/asp.net 1.1/2.0). So I know it meets all the requirements that you mentioned. The problem is that when i try to submit the form from the site (not previewing from expression web), I get the following error page (i changed the code like you suggested to reveal the error). Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration> Obviously I have no idea what any of this means, and maybe this is too broad, but i though i would give it a shot and see if you could provide some help. I know this is a free product, so any advice is very much appreciated. thanks much.
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 7/25/2008 15:34:41
quote:
ORIGINAL: Mollee So, why does the code have the username and password? If I house my own web server, is this required? And, what happens if I leave those lines out? Shouldn't the contact email just be sent to the sendresultsto string? I'm new at asp.net, have had some java and c++, and I'm just a little confused about these lines of the code. Thanks! Email 101 An email cannot be sent without a mail server to send it. If you've ever set up an email account in a program like MS Outlook or Thunderbird, you know that you have to specify an "outgoing" SMTP mail server name and usually its accompanying username and password. If you use something like Gmail or hotmail, its all behind the scenes and you don't have to set it up but it still uses an outgoing SMTP mail server to send your email. Sending an email programmatically through a contact form is no different; there still has to be an SMTP outgoing mail server to send the message. So, whether your house your own web server or use a shared host, you have to tell the code which SMTP server to use and most SMTP servers also require a username and password.
|
|
|
|
WantToLearn
Posts: 109 Joined: 10/19/2002 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 7/25/2008 15:40:45
quote:
ORIGINAL: cb aspnet newbie Hello, First let me say that your form is amazing. I would have paid for this form generator. Great great product. Ok, now to reveal my newbieness. I have just entered the asp.net foray and am, like everyone having trouble with it. So I loaded your form, following the steps (even changing the c# to VB). it uploads fine to my windows server (which does support asp/asp.net 1.1/2.0). So I know it meets all the requirements that you mentioned. The problem is that when i try to submit the form from the site (not previewing from expression web), I get the following error page (i changed the code like you suggested to reveal the error). .... Obviously I have no idea what any of this means, and maybe this is too broad, but i though i would give it a shot and see if you could provide some help. I know this is a free product, so any advice is very much appreciated. thanks much. If you open the page on your local computer in Expression Web and then click the "Preview in Browser" button, it should launch the ASP.NET development server in your system tray and the page will load in your default web browser. Does the page display correctly then?
|
|
|
|
iamsaltman
Posts: 1 Joined: 11/25/2008 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 11/25/2008 20:49:58
I have been reading thru all of the posts and found a few issues that are similar to the one I am having. I downloaded your code (which is a godsend) and placed it into the file as instructed. I use GoDaddy and changed the stmpMailServer to relay-hosting.secureserver.net. I am still receiving the Due to...may not be sent error. I did see that the <script runat="server"> line is asking for a type attribute. I also commented out the following lines - Dim smtpUsername As String... - Dim smtpPassword As String... - Dim basicAuthenticationInfo As New System... - MailObj.Credentials = basicAuth... since GoDaddy does not need credentials to send. Also, the form works when I run it locally, just not when I upload it to GoDaddy. And, yes, I change the smtp info before I upload. Any help would be greatly appreciated. Here is the code of the entire page. <%@ Page masterpagefile="Master.master" language="VB" title="Elitediting" %> <script runat="server"> Protected Sub SubmitForm_Click(ByVal sender As Object, ByVal e As System.EventArgs) If Not Page.IsValid Then Exit Sub Dim SendResultsTo As String = "contactus@elitediting.com" Dim smtpMailServer As String = "relay-hosting.secureserver.net" 'Dim smtpUsername As String = "contactus@elitediting.com" 'Dim smtpPassword As String = "video" Dim MailSubject As String = "Contact Us Form" Try Dim txtQ As TextBox = Me.FormContent.FindControl("TextBoxQ") If txtQ IsNot Nothing Then Dim ans As String = ViewState("hf1") If ans.ToLower <> txtQ.Text.ToLower Or ans.ToUpper <> txtQ.Text.ToUpper Then Me.YourForm.ActiveViewIndex = 3 Exit Sub End If End If Dim FromEmail As String = SendResultsTo Dim msgBody As StringBuilder = New StringBuilder() Dim sendCC As Boolean = False For Each c As Control In Me.FormContent.Controls Select Case c.GetType.ToString Case "System.Web.UI.WebControls.TextBox" Dim txt As TextBox = CType(c, TextBox) If txt.ID.ToLower <> "textboxq" Then msgBody.Append(txt.ID & ": " & txt.Text & vbCrLf & vbCrLf) End If If txt.ID.ToLower = "email" Then FromEmail = txt.Text End If If txt.ID.ToLower = "subject" Then MailSubject = txt.Text End If Case "System.Web.UI.WebControls.CheckBox" Dim chk As CheckBox = CType(c, CheckBox) If chk.ID.ToLower = "checkboxcc" Then If chk.Checked Then sendCC = True Else msgBody.Append(chk.ID & ": " & chk.Checked & vbCrLf & vbCrLf) End If Case "System.Web.UI.WebControls.RadioButton" Dim rad As RadioButton = CType(c, RadioButton) msgBody.Append(rad.ID & ": " & rad.Checked & vbCrLf & vbCrLf) Case "System.Web.UI.WebControls.DropDownList" Dim ddl As DropDownList = CType(c, DropDownList) msgBody.Append(ddl.ID & ": " & ddl.SelectedValue & vbCrLf & vbCrLf) End Select Next msgBody.AppendLine() msgBody.Append("Browser: " & Request.UserAgent & vbCrLf & vbCrLf) msgBody.Append("IP Address: " & Request.UserHostAddress & vbCrLf & vbCrLf) msgBody.Append("Server Date & Time: " & DateTime.Now & vbCrLf & vbCrLf) Dim myMessage As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage() myMessage.To.Add(SendResultsTo) myMessage.From = New System.Net.Mail.MailAddress(FromEmail) myMessage.Subject = MailSubject myMessage.Body = msgBody.ToString myMessage.IsBodyHtml = False If sendCC Then myMessage.CC.Add(FromEmail) 'Dim basicAuthenticationInfo As New System.Net.NetworkCredential(smtpUsername, smtpPassword) Dim MailObj As New System.Net.Mail.SmtpClient(smtpMailServer) 'MailObj.Credentials = basicAuthenticationInfo MailObj.Send(myMessage) Me.YourForm.ActiveViewIndex = 1 Catch ex As Exception Me.YourForm.ActiveViewIndex = 2 Response.Write("<span style='color:red'>" & ex.Message & "</span>") End Try End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) If Not Page.IsPostBack Then Dim lbl As Label = Me.FormContent.FindControl("labelq") If lbl IsNot Nothing Then Dim rq(3) As String rq(0) = "Is fire hot or cold?" rq(1) = "Is ice hot or cold?" rq(2) = "Is water wet or dry?" Dim ra(3) As String ra(0) = "hot" ra(1) = "cold" ra(2) = "wet" Dim rnd As New Random Dim rn As Integer = rnd.Next(0, 3) lbl.Text = rq(rn) ViewState("hf1") = ra(rn) End If End If End Sub </script> <asp:Content id="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1"> <br /> <span class="style1">Elite Editing</span> <br /> 1715 1st Ave. SE <br /> Watertown, SD 57201 <br /> 605-881-1081 <br /> <br /> <asp:MultiView ID="YourForm" runat="server" ActiveViewIndex="0"> <asp:View ID="FormContent" runat="server"> <br /> <label for="First_Name"> First Name:<br /> <asp:TextBox ID="First_Name" runat="server" Columns="35"></asp:TextBox> </label> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="First_Name" ErrorMessage="Please enter your first name." SetFocusOnError="True" CssClass="ValidateMessage" ForeColor="">* Required</asp:RequiredFieldValidator> <br /> <br /> <label for="Last_Name"> Last Name:<br /> <asp:TextBox ID="Last_Name" runat="server" Columns="35"> </asp:TextBox> </label> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Last_Name" ErrorMessage="Please enter your last name." SetFocusOnError="True" CssClass="ValidateMessage" ForeColor="">* Required</asp:RequiredFieldValidator> <br /> <br /> <label for="Email"> Enter your Email Address:<br /> <asp:TextBox ID="Email" runat="server" Columns="35"> </asp:TextBox> </label> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Email" Display="Dynamic" ErrorMessage="Please enter your email address." SetFocusOnError="True" CssClass="ValidateMessage" ForeColor="">* Required</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Email" ErrorMessage="Please enter a valid email address." SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" CssClass="ValidateMessage" ForeColor="">* Please enter a valid email address.</asp:RegularExpressionValidator> <br /> <br /> <label for="Subject"> Message Subject:<br /> <asp:TextBox ID="Subject" runat="server" Columns="50"> </asp:TextBox> </label> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Subject" ErrorMessage="Please enter a subject." SetFocusOnError="True" CssClass="ValidateMessage" ForeColor="">* Required</asp:RequiredFieldValidator> <br /> <br /> <label for="Message"> Please type your message below: <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Message" ErrorMessage="Please enter a message" SetFocusOnError="True" CssClass="ValidateMessage" ForeColor="">* Required</asp:RequiredFieldValidator> <br /> <asp:TextBox ID="Message" runat="server" TextMode="MultiLine" Columns="55" Rows="10"> </asp:TextBox> </label> <br /> <br /> <br /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" CssClass="ValidateMessage" ForeColor="" /> <br /> <br /> <asp:CheckBox ID="CheckBoxCC" runat="server" Text="Send me a carbon copy of this email." /> <br /> <br /> <asp:Button ID="SubmitForm" runat="server" OnClick="SubmitForm_Click" Text="Submit Form" /> <br /> </asp:View> <asp:View ID="FormConfirmationMessage" runat="server"> Your message has been sent. Thank you for contacting us.<br /> </asp:View> <asp:View ID="FormErrorMessage" runat="server"> Due to technical difficulty, your message may NOT have been sent. </asp:View> <asp:View ID="FormSpamMessage" runat="server"> You did not correctly answer the anti-spam question. Please go back and try again.</asp:View> </asp:MultiView> </asp:Content> <asp:Content id="Content2" runat="server" contentplaceholderid="head"> <style type="text/css"> .style1 { font-size: medium; } </style> </asp:Content> Thank you, Tim
|
|
|
|
Tami
Posts: 1 Joined: 2/10/2009 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 2/10/2009 15:21:58
I too am having problems with Godaddy and the contact form generated form. Any form for that matter! The form works perfectly if I send the email within the Godaddy system (one godaddy supported email address to another), however, if I try and use the form and use an email address outside their system such as a yahoo or gmail address, I get the "Due To Technical Difficulties ... " error message. I have gotten this far searching Godaddy & googling ... 1) The smtpMailServer is relay-hosting.secureserver.net. 2) You do not need to enter a user name or password. 3) You have to set up and use Godaddys mail forms. I am using their gdform.asp and have gone into my hosting account and set up my email address in their Content, Form Mail section. 4) You have to direct the info to Godaddy's gdmform.asp somehow. GoDaddy gives you this code to use: <form action="gdform.asp" method="post"> <input type="hidden" name="subject" value="Form Submission" /> This code is not used anywhere in the Contact Form Generator that I can find. I don't know enough about writing code to add it somewhere. (I've tried all kinds of ways and just mess it up where all I get are error messages. Of course, I may be totally off base that this is the problem. Can someone please help me? I have the form up at: http://conciergeserviceofkeywest.com/contact_us.aspx. Thank you.
|
|
|
|
tonymuffin
Posts: 1 Joined: 6/29/2009 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 6/29/2009 21:19:44
I am getting errors trying this. I am using a Master page. I copied the code as instructed but get the following anytime I try to run it. Server Error in '/emeraldcitywater' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
|
|
|
|
bkirk
Posts: 1 Joined: 7/26/2009 Status: offline
|
RE: Free Contact Form Generator for Expression Web - 7/26/2009 22:51:14
Hi there, Great form builder, but I am haviing problem with the server side, I do have .net 2.0 installed, and have changed the C# to VB on the form. But this is the error I get. Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration> I am sure I am missing something, but not for sure. Thanks
|
|
|
|
caz
Posts: 3734 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: Free Contact Form Generator for Expression Web - 7/27/2009 8:20:33
It's over a year since the original poster of the form has been on the site, so it might be a good idea to PM him for answers to your queries.
_____________________________
I remember when it took less than 4hrs to fly across the Atlantic.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|