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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Integrating ASP.NET applications with DNNIntegrating ASP.NET applications with DNN
Previous
 
Next
New Post
7/18/2006 11:04 PM
 
I'm an ASP.NET developer and have recently started using DNN. While I see the benefits of rapid site development and content management using DNN, a major shortcoming of DNN is it cannot be easily integrated with other custom ASP.NET applications that I am developing.

For example, I want to have a CMS-enabled website, but also want to develop a volunteer management system (for my charity organization) which includes allowing logged in users to send SMS text messages to other users via the portal. This would require me to integrate the DNN application with my SMS gateway API. Will I be able to write ASP.NET code within a DNN module to interact with the SMS gateway API? Or does this require me to venture into the complicated world of DNN Module development? [Note: I'm not asking about how to interface with an API, but the concept behind integrating DNN sites with external ASP.NET applications.]

The other major issue is User Accounts. Can I use database table values (e.g. usernames) from my DNN User Accounts table (by accessing the SQL backend database) and use those usernames to authenticate access to other ASP.NET applications within the same portal?

I'm sure this issue isn't new to seasoned DNN developers. Perhaps I'm wrong in my assumption that DNN can't be integrated with other ASP.NET applications.

Could someone advise me on this, or at least point me to some tutorials on how to do all this? Thanks in advance!

 
New Post
7/19/2006 3:05 AM
 

I just recently added the combined forums feed as an item on my customized Google home page which is how I ended up seeing your post. I only qualify my own post this way because I am most likely the first of many on what may very well become a long thread. While I am on the topic of meandering, does anybody else notice that it is very hard to type into the rich text editor if you are on a machine under 1 ghz? I started typing this into the RTF editor on the forum topic post page, but ended up switching to an outlook HTML message which doesn't have any lag. Very interesting, I thought that rtf editor lag was fixed.

In any event, back to the topic: migrating existing asp net applications to DotNetNuke. Great topic by the way. The simple answer is that all DNN Modules are are extended web user controls. The PortalModuleBase class (I am pretty sure that is what it is...) inherits (eventually) from Web User control, which means that you can easily create a simple web user control, add whatever references you want to it, and configure it manually as a module. With DNN 3.x & above, if that control lives anywhere in the DNN File System, you can configure it as a view control for a module.

Getting more, advanced, there are several routes you can take in adapting your old school monolithic application to DNN. One of these is to encapsulate all of your old application's page's functionality into web user controls, and then dynamically load them into a placeholder determined by a parameter in the query string. Many modules that you can download for free do this, unfortunately, the guy I learned this technique from has since turned his downloads into a fee based system. I have several modules on my site which you can access through my user profile which use this technique. I have read (on wwwcoder.com by Patrick Santry) an article describing this as the Dispatcher Pattern. The Document Management module free on my site for DNN3.x uses this pattern.

The second technique is to use I believe the navigateurl method to return a url to a specific named control in your module, but you will still have to tack anything you wish to pass onto that module into the rest of the navigateurl. (Learn more in the module developers guide). Several great examples of this include the Blog Module & the Gallery Module, although all of the core modules use this technique. I am personnally investigating if I should use this or my old technique in a series of modules I am about to start work on for my employer.

Your question regarding logons being able to access the site based upon tables in the SQL Database seemed to be two questions. The first, can you get at the data , the answer is yes, as of DNN 3.3, all user profile data is relatively easily accessible compared to the older M$ provided membership provider. I still haven't figured out if the old aspnet_ tables are required or being used to store the password, I don't know. But I do know it is a whole lot easier to manage user accounts programmatically or with SQL Stored Procedures, Triggers & Functions.

You need to dive deeper into the DotNetNuke Membership provider documentation for your other questions. Fortunately, this documentation is a free download on the DotNetNuke site. Also, I am pretty sure there is a link to a bunch of great DotNetNuke programming books, including the WROX Press book written by the Core Team. It's a great read, and provides in depth coverage of module development.

Happy Coding!

 

 

 
New Post
7/19/2006 3:57 AM
 

Thanks for responding, kennster.

I really don't want to get into Module development. I've got the Wrox book "DotNetNuke ASP.NET Portals" and read through it. The Module development is just too complicated. I'm a .Net developer, but not a .Net class library, etc developer. Given the amt of effort it takes to develop a module, I might as well develop an application from scratch on ASP.NET (in your words, my old school monolithic application). At least I'm assured I can tweak it and customise it anyway I want.

What I was hoping for was a way to open up .aspx files generated by DotNetNuke and just tweak them to suit my needs. I guess there's no way, huh?

 
New Post
7/19/2006 11:15 AM
 
This is a good subject that my company is now dealing with.  Can we get some more info on this subject.  I think as DNN gets more prevalent people are going to be doing this more and more so this a a worthwhile topic.  So does anyone else have any info on the topic?

www.mycollegeexperience.com
 
New Post
7/19/2006 12:18 PM
 
dpathway wrote

What I was hoping for was a way to open up .aspx files generated by DotNetNuke and just tweak them to suit my needs. I guess there's no way, huh?

there is mainly only one .aspx, the default.aspx. No pages get generated - just the (as said before) usercontrols get loaded on the fly...

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Integrating ASP.NET applications with DNNIntegrating ASP.NET applications with DNN


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