Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsFeedbackFeedbackValidating Email address before sending?Validating Email address before sending?
Previous
 
Next
New Post
7/26/2006 3:46 AM
 

Is there a way to add validation to the sender's email address before submitting the feedback form?

It seems like there should be a way to create a new feedback module based on this one but with a regx validation control or something.

Thanks

JohnS

 
New Post
1/3/2007 7:44 PM
 

I'm not sure if this has been posted somewhere else, but here's what I did.  I downloaded the source code for the feedback project and added a few things.

First, I added the standard validation controls to (feedback.ascx).  One to validate that the user had entered an email address and a second to make sure the email address was in the correct format.

<asp:RequiredFieldValidator id="RequireEmail"
                    ControlToValidate="txtEmail"
                    Display="Dynamic"
                    InitialValue="" Width="100%" runat="server">
                    &nbsp;<BR />Email&nbsp;Address&nbsp;is&nbsp;required.
 </asp:RequiredFieldValidator>
 <asp:RegularExpressionValidator ID="ValidateEmail"
                    ControlToValidate="txtEmail"
                    Display="Dynamic"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    runat="server">
                    &nbsp;<BR />Invalid&nbsp;e-mail address.&nbsp;Must&nbsp;follow&nbsp;email@host.domain
 </asp:RegularExpressionValidator>

Secondly, I added (If Page.IsValid Then) to the cmdSend_Click event.  This is needed for firefox users.

I recompiled the project and copied the new dll's to the bin directory of my site.

Hope that helps.

PB

 
New Post
1/24/2007 4:36 AM
 

Is there any possibility to use Captcha ?

DV

 
New Post
1/24/2007 11:35 AM
 
It seems like it would be dead easy to make this STANDARD operating procedure in the newly developed module, as well as to validate that each text field has been filled in!!
And a captcha would make many people happy toward decreasing spam...
Thank you, Tom
 
New Post
1/25/2007 10:53 AM
 

Someone can log this into Gemini ???

DV

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsFeedbackFeedbackValidating Email address before sending?Validating Email address before sending?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out