Just recently an issue was brought to my attention that my External Database Provider module when creating users was making it so that notification e-mails could not be sent when assigning roles. So I started looking into the code, and how I was creating a user. The user creation code was something that I have been using for a long time, some code that was first found on a blog or forum post about 2-3 years ago. Not noticing anything wrong with the code, at least from an obvious point of view I started to look into the database to see if there were any differences at the database level. Looking into the users' information I noticed that they were missing their user profile, and then I found out that a few key elements still needed to be set to "fully" create the user. This posting shows you the "Full Code" to insert a user into a DotNetNuke portal from a C# Codebehind, translation into VB should be very simple.
Read more...
Posted by Mitchel on Monday, December 22, 2008
After struggling with an issue when installing a custom authentication provider that no-one could seem to help with, I finally found the resolution. I had a <basepath>desktopmodules/myfolder</basepath> declaration inside the script area.....well DNN packages need the /'s to be \'s.
After asking around for almost 2 weeks, that was the end fix to a long running error, so I thought I'd put this out there as a helpful reminder for all of us! The good news, a new version of my Custom Authentication Provider will be released now! :)
Posted by Mitchel on Friday, October 31, 2008
I find that web development projects are requiring more and more AJAX functionality. The bells and whistles that come with AJAX are hard things for many people to live without. One of the more common toolsets to use when working with AJAX items in the .NET environment is the ASP.NET AJAX Control Toolkit. I have found that with VERY minimal effort you can fully implement the toolkit inside a DNN installation and it can even be done WITHOUT modification to the web.config file. This blog entry will provide information on how to incorporate the ASP.NET AJAX Control Toolkit into your project. I will simply discuss the DNN implementation, I am NOT going to actually discuss the usage of any specific control.
Read more...
Posted by Mitchel on Saturday, September 13, 2008