Register | Login
Thursday, August 21, 2008

Sections
  
About Us
  
Hosting Provided by Server Intellect
Partners
Downloads
  
 WWWCoder.com Resource Directory

 

ORDER TODAY!
Professional DotNetNuke ASP.NET Portals
Amazon.com now has the only DotNetNuke book you'll ever need. Written by the guys who brought you DotNetNuke, Shaun Walker, Patrick Santry, Joe Brinkman, Dan Caron, Scott McCulloch, Scott Willhite, and Bruce Hopkins. Order it now! .

Use Visual Web Developer Express (VWD) with DotNetNuke!
1/16/2006 8:53:55 AM

Not possible you say! DotNetNuke uses a very complex n-tier framework which will not work with Visual Web Developer Express(VWD). You're right, but you don't need it to. That's the point of DotNetNuke. Think of DotNetNuke as a souped-up Windows SharePoint Services (WSS). With the SmartDNNModule you can use any .net language VB.Net, C#.Net, C++.Net, J# .Net user control, no special hooks or programming just need the SmartDNNModule.

Not possible you say! DotNetNuke uses a very complex n-tier framework which will not work with Visual Web Developer Express(VWD). You're right, but you don't need it to. That's the point of DotNetNuke. Think of DotNetNuke as a souped-up Windows SharePoint Services (WSS). With the SmartDNNModule you can use any .net language VB.Net, C#.Net, C++.Net, J# .Net user control, no special hooks or programming just need the SmartDNNModule.

In this article I am going to show you how to use VWD (also same steps for VS) to build a user control and load it into a DotNetNuke website.

Programmers work smarter not harder!

Resources:

What is DotNetNuke?

Visual Web Developer Download - Free development environment available from the Microsoft Website.

Why is DotNetNuke so popular? (not my site just found it on google)

  • DNN also includes Windows,forms,or ldap authentication
  • Advanced Security/roles/membership framework
  • Skinning….thousands ready to buy CHEAP from snowcovered.com
  • DNN 4 Supports ASP.Net 1.1 and 2.0 usercontrols
  • A huge community of developers and experts

What is SmartDNNModule?

  • It is a user control wrapper that is used to create DNN modules from any user control.

Article:

Basic assumption; that you know how to use Visual Web Developer Express or Visual Studio.

Step1. Create a user control.

  • In Visual Web Developer Express create a new website
  • File >>New File>>Web User Control (see image)
  • Click add

Step 2.

Add controls and or any programming to your user control:

Step 3.

Create your “UserControls” folder in your dotnetnuke root folder hint your UserControls folder should be at the same level as the bin folder:

Step 4.

Put the .ascx and .ascx.resx files in the usercontrols folder (in ASP.NET 2.0 just the .ascx):

Step 5.

Put the .dll into the bin folder (Visual Studio only – VWD is inline code skip this step)

Step 6.

Upload SmartDNNModule.zip into your DNN portal and onto a page then type in the name of your usercontrol(s) – remember in DNN you can have a view and edit controls or just a view. In this sample we just have a view control.

Click Create Module: and wait for the page to finish loading then click on the page link to refresh the page:

That’s it! You can create any user control with any .Net compliant language and load it into a DNN portal installation.

About the Author:

Charles Stratton has been programming since 1999 and enjoys staying on the edge of technology. his skills range from DNN to Sharepoint to Custom Development. currently working in VB.Net and C#.Net web and software. KISS - Programmers work smarter not harder. Charles can be reached at stratcr@peoplepc.com.


Page Options:
format for printing  Format for Printer
email article  Email Page
add to your favorites   Add to Favorites
How would you rate the quality of this content?
Poor - - Excellent
Comments?
Overall Rating:
Comments Left:
Left on 1/20/2008 1:25:31 PM by Anonymous
Comments: 42TfMS hi nice site thx http://peace.com
Left on 12/30/2007 7:04:29 AM by Anonymous
Comments: Excellent! thanks,
Left on 3/1/2007 5:21:33 PM by Anonymous
Comments:
Left on 10/24/2006 12:49:16 PM by Anonymous
Comments: This article was for pre-release of the starter kit.
No ratings available.
Left on 10/24/2006 10:49:15 AM by Anonymous
Comments: You can use DNN with Visual Web Developer Express. Anyone who says otherwise is on crack. I've seen Shaun Walker do it himself with DNN 4.3.5 and VDE in front of 25 people.
Left on 8/30/2006 1:56:39 PM by Anonymous
Comments: Only just purchased it, but seems to work great. Had a user control uploaded in minutes.
Left on 5/21/2006 11:44:53 PM by Anonymous
Comments: yes, but you cannot tap into the frame work to get userid,role etc.. through a frame.
Left on 4/28/2006 1:40:48 PM by Anonymous
Comments: It's possible as well using an IFrame with an aspx page. Check it out.
No ratings available.
Left on 4/18/2006 5:21:58 PM by Anonymous
Comments: works! thanks, I've been wanting something easier than custom modules.
Left on 3/24/2006 7:12:47 AM by Anonymous
Comments: needs to details explenation.
Left on 2/11/2006 1:32:04 PM by Anonymous
Comments: right. you will have less development issues if you use flow layout. I use flow layout for everything.
stratcr
No ratings available.
Left on 2/10/2006 9:05:14 AM by Anonymous
Comments: It works indeed, but when a use vwd 2005 express edition a cannot use absolute,relatively positioned , because de controls are allover de page and not within de contentpane where de smartdnnmodule is loaded; ???
No ratings available.
Left on 2/9/2006 11:48:24 AM by Anonymous
Comments: I have setup two custom apps with this article - IT WORKS!
mjlarson
No ratings available.
Left on 2/7/2006 8:27:44 AM by Anonymous
Comments: shit
Left on 2/5/2006 2:32:32 AM by Anonymous
Comments: Anything that works with dotnetnuke and people use supports the project.
Left on 1/29/2006 4:32:22 PM by Anonymous
Comments: I don't think this will help DNN Project!!
No ratings available.
Left on 1/26/2006 4:17:00 PM by Anonymous
Comments: comments from patricks blog:
Question:
Data Provider
In the book "DNN ASP.NET Portals" it's says that they are few data provider for DotNetNuke. From surfing at the DotNetNuke site I can see only MSSQL is supported for DotNetNuke 3.XX and 4.XX
There no mySQL or Access data providers for DotNetNuke?

Answer:
Yes, in the book it does say that you can use a different provider. if you look on SnowCovered.com there is a provider for oracle. 99.5% of the modules being developed "For Sale" on SnowCovered.com are have MSSql providers.

I actually use db2. so what I do is I create usercontrols that connect to the db2 data. I then use smartdnnmodule to load the data and I just use sql or sql express for DotNetNuke, but all of my work I can do with any database. think of DotNetNuke as your framework for security and usercontrols.
Left on 1/20/2006 5:01:43 PM by Anonymous
Comments: With several seperate (and unsuccessful) attempts at creating my own custom modules, this is EXACTLY the mod I was looking for.  I can write my own user controls, but DNN custom module creation has absolutely frustrated me to this point.  I might just leave the custom modules to you guys - I'm sure you appreciate my business/ignorance.  I really liked this module.  It was a very simple way to drop my own controls into DNN.  Thanks.

mjlake
Left on 1/20/2006 5:00:45 PM by Anonymous
Comments: Fantastic Module - Does exaclty what is says on the tin. Just drop this module onto your page - create a folder called UserControls in your DNN folder - create an ascx control and then enter the name of that control in the box provided.
You've now got your own programming working immediately but with all the benefits of the skinning and rolebased permissions from DNN.
Great.
Left on 1/16/2006 9:51:36 AM by Anonymous
Comments: Comments from the following blog: Patrick Santry's (aka wwwCoder) Blog, located at: http://blogs.wwwcoder.com/psantry/archive/0001/01/01/15078.aspx
No ratings available.
  

 Latest Articles
  

 Latest News
  

 

Spotlight
Syndication

 


 


Digg This
 


DotNetNuke Platinum Benefactor

  
 

 Terms Of Use | Privacy Statement
 Copyright 2008 - Santry Technology Solutions, Box 172, Girard, PA 16417, (814) 774-0970