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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Wire up a Send buttonWire up a Send button
Previous
 
Next
New Post
4/20/2015 11:06 AM
 

I'm new to DNN and need a little help.  I'm trying to wire up the Send button on my website Contact page.  Is this something that I "configure" through DNN, or do I write a handler in the code behind?

I believe I have configured my SMTP server because it tests successfully.  I have purchased a website template and do not see that the Send button's click event is handled.  I am a .NET developer and am resisting the temptation to open this up in Visual Studio and start coding the way I know how. 

The html section on my page is this:

<div class="contact_input_style">
<p>Please leave your contact info and we'll get in touch.</p>
<p>Your Name<span>*</span></p>
<input class="contact_input_box" type="text" />
<p>Your Email<span>*</span></p>
<input class="contact_input_box" type="text" />
<p>Your Phone<span>*</span></p>
<input class="contact_input_box" type="text" />
<p>Your Message<span>*</span></p>
<textarea class="contact_textarea_box" type="text"></textarea>
<button class="btn btn-primary" type="button">Send Message</button>
</div>

 I'd appreciate any help to get this working and also an explanation to help me understand.

 
New Post
4/20/2015 2:22 PM
 

You would be best served to download a module that does what you need here. The Feedback module is the one I use for contact forms on my site, but there are many options available.

http://www.dnnsoftware.com/forge/dotn...


You might also want to do custom module development in which you create your own module/form, but likely the Feedback module will suffice.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/20/2015 5:20 PM
 
Thanks.

Although so far I am not having success. (I've watched your video on installing a module). In my case, when I go to Host, Extensions, I just get a blank page.

 
New Post
4/20/2015 10:38 PM
 
When you navigate to Host/Extensions you get a blank page? Do you see the Control Panel?

If you switch to Layout mode do you see any modules on the page?

If you can see the Control Panel you might be able to add the Extensions module to the page.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/24/2015 1:48 PM
 
The quickest way to do this sort of thing is to use the Razor Host module - instead of HTML module.

The HTML module is best thought of as a general content display tool (put some HTML on this part of this page).
The Razor Host module on the other hand lets you create programmable elements without the need for creating a full custom module.

As such - you would put your HTML from the original post in the Razor Host module - and include some razorscript code to handle the button click.

I prefer using as opposed to
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Wire up a Send buttonWire up a Send button


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