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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Creating a simple first name and email formCreating a simple first name and email form
Previous
 
Next
New Post
9/11/2012 4:32 PM
 

Hi Forum,

 DotNetNuke 6.1.4 and 6.2.2

 I need to create a simple opt-in form to capture a visitor's first name and email address, validate the email address, store the name in a database, and then redirect them to a download page. to download files.

Are there any free module that I could use to do this?

Any ideas, suggestions and thoughts would be appreciated

 

 
New Post
9/11/2012 4:41 PM
 

Why not just write up a quickie module to do this for you?  You would just need to create a web control in visual studio and put it in a folder under the DesktopControls folder.  Then change it to inherit from PortalModuleBase.  Then you can add the 2 text boxes and the button to the ascx file, style as needed,  You can use the asp validation system to check the email and that the user fills in the name field, then wire the button up to a function that will take the name and email and create a simple user information object in DNN, this will automatically put the user in the built in "subscribers" role, if you need to you can also create a more specific role and add them to that.  Then you forward them to your downloads page.

If you have any specific questions about this process, post back and I will try to help.

 
New Post
9/11/2012 7:22 PM
 

I never created a module before up until now I was content to just use other modules. I wouldn't know where to start but if you could send me step by step instructions on how to do this I will get started immediately.

I have visual studio 2010 professional and WebMatrix 2.0 as development environments and I pretty much know my way around them.

Any resources on module development will also be a plus. Once I do one module I'll know how to do them and will develop my own solutions in the future.

Thanks in Advance

 
New Post
9/11/2012 8:03 PM
 
there are a couple of blog posts regarding module development, I suggest using VS 2010 and use one of the module templates (e.g. the one from Chris Hammond)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/11/2012 8:38 PM
 

Starting in VS 2010 open your project

1. Create a folder for the module under DesktopModules called "SimpleForm"

2. Add a web user control to that folder called SimpleForm.ascx, make sure it creates a code behind file as well

3. Open the code behind and make sure the control inherits from the PortalModuleBase class

4. add  using DotNetNuke.Entities.Modules; to the top of the code behind

5. on the SimpleForm.ascx file, create a div and add some starter text to it like "Hello World"

6. open the dnn site in a browser and login with your super user account

7. goto host menu and extensions, then use the manage button to create a new module8. set the source to control and then select the SimpleForm folder from the Module Folder drop down, then select your ascx from the resource drop down.

8. Name the module "Simple Form" and click Create.

9 when it is done, go to the page where you want your form and then add the simple form module to the page, you should now see your hello world text.

Let me know when you have this much and I will get you some more info, but basically at this point you can code the ascx like you would any asp.net control

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Creating a simple first name and email formCreating a simple first name and email form


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