Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Module Programming 101? I need to learn this yesterday!
Previous Previous
 
Next Next
New Post 2/16/2006 11:58 AM
User is offline Mark Orsted
7 posts
10th Ranked


Module Programming 101? I need to learn this yesterday! 

I am trying (and without much success) to learn how to make my own modules.  It seems all the resources I see out there, make the assumption that all I'm doing is a website, and that all my data is there in support of this website.  That and the fact I haven't found a very well done tutorial or set of distinct "step by step" instructions on making a module.  That said, I am going to outline exactly what I'm trying to accomplish with my "very first module", and see if anyone can help me with good, concise, instructions.

 

a)  I've grabbed all the DNN Jungle stuff, and the stuff from Seabury Design.  I've read a few things on the net.  I'm just as confused now, as I was before I started.

 

So - here goes!

 

We have a table in an existing database, that's currently fed data from an ASP Page.  That data is in turn read in by a VB6 app, to make labels. 

I want a module that allows anyone (not necesarily registered users) to

a) enter their name, email addy, and mailing address info.
b) choose 1-4 items from a list of 4 documents they would like us to USPS them
c) Submit this  info into our table

My web module doesnt' need to display anything to anyone - the data just gets put in the db.  Our vb6 app reads this data to make mailing labels and send the requested documents out.  Everything I see talks about "module ID" and "portal ID" etc, but nothing I've read thus far will let me just create this simple module to populate our stand alone table? 

Can anyone help me, point me in the right direction, etc?  I have a large group of modules "of this nature" that we need to be able to design, but the database we will work with, for the most part, is not the DotNetNuke database.  The DNN Database is only going to be there to keep our "look & feel" and such, but it has to be able to interface pretty well with our "real time system".

thanks

 

Mark Orsted

 

 

 

 

 
New Post 2/27/2006 12:14 PM
User is offline Stefan Kamphuis
310 posts
www.superska.net
8th Ranked






Re: Module Programming 101? I need to learn this yesterday! 
About accessing your non-dnn table: that's actually quite easy. All module templates use things like "databaseowner" and "objectqualifier" in SqlDataProvider classes, but nothing stops you from accessing different tables or even databases but not using these.

Does this help anything?


Greetz,
Stefan Kamphuis
 
New Post 9/6/2007 8:08 AM
User is offline ricker
1 posts
10th Ranked


Re: Module Programming 101? I need to learn this yesterday! 

Mark-

what you're asking is pretty stright forward, but the "correct" way to skin this cat my be better determined by your envirnoment.  If your destination table/db is SQLserver the easiest way would be to also use DNN in the same and to create a view (with appropriate permissions to the proper user).  Then you are leveraging a single connect string.  However, it is pretty simple to use an alternate connect string.  If you follow a "by the book approach" you can create a data provider, (presumably) SQL data provider and controller that exposes a single public method that can return a status code like:

 

Public sub PostMyInfoRequest(x1 as string,...)

    Dataprovider.Instance().PostMyInfo(x1...)

end sub 

your  SQL data provider will call DAL+ and execute the stored procedure, sql insert etc.

In this case you don't need ModuleID, ItemsID etc.-- they are irrelavant to the task at hand (i.e. if you put this module in 2 locations you wouldn't care which one is posting to your database for the VB app-- if you do carry the moduleid and you can use it as a source location for analizing were you are collecting data from the most.

 

Hope that helps

 

Ricker

 

btw- if you are using DNN w/in visual studio and use the add DNN Module, much of the framework is created for you, but you'll end up deleteing out almost everything except the add stub.

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Module Programming 101? I need to learn this yesterday!
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP