DNN Navigation Redirect With Parameters and No Control 

When working with DotNetNuke I often find it necessary to do a redirection back to the current page, with additional querystring parameters.  Not actually switching views, but just back to the same page so that some other action could be taken for a specific module.  In the past most of the examples I found used this process.

DotNetNuke.Common.Globals.NavigateUrl(this.TabId) + "?mykey=myvalue"

Which would create a url such as

http://www.mysite.com/MyFolder/Default.aspx?mykey=myvalue

Although a fully functional URL that works 100%, it is not something that can be easily copied, and overall doesn't look all that fancy.  Looking through the functionality of the various NavigateUrl overloads, it didn't seem apparent that there was something that could be used to re-write that type of URL.  Well I missed something using the following code.

DotNetNuke.Common.Globals.NavigateUrl(this.TabId, "", "mykey=myvalue")

From this example we provide the tabId, a blank ControlKey, and then our added parameter value.  We could add additional parameters as well.

This results in a URL similar to the following.

http://www.mysite.com/MyFolder/mykey/myvalue/Default.aspx

Now, this is a fully re-written URL, and something much easier for a person to remember.  I hope this has been helpful!

Read more...

Posted by Mitchel on Monday, June 08, 2009

SDN June Event 

Although a recent post provided most of my upcoming speaking engagements, there was one big one left off the list.  I will be presenting a total of 3 sessions at the SDN Event on June 26th.  This event in in Houten, The Netherlands.  I will be presenting on Advanced DotNetNuke Module Development, Creating Authentication Providers, and Creating Membership Providers. 

I'm looking forward to this event as it will be a great opportunity to get to meet some of the European DNN'ers out there.  I'll be coming in a few days early and staying a day later, so if anyone wants to meet to say hello just let me know.  For most of the time I will be in Amsterdam, with a short trip to Pairs.

Those looking to register for the event can do so here, or if you are non-dutch speaking you can email info@sdn.nl. 

Posted by Mitchel on Wednesday, June 03, 2009

Development Environment and Tools Used 

A very common question that I get asked by people is; what tools do you use to complete your development and what type of system do you use.  Now, I believe I have written a bit about this in the past, but I thought I would take some time to go through and give a bit of a detailed overview of what I use for development and why I have selected the hardware and software that I have.  I will cover this in detail from both the hardware and software point of view.

Read more...

Posted by Mitchel on Friday, May 22, 2009

Programmatically Creating DNN Roles A Gotcha Moment! 

This is just a quick blog post to hopefully share some helpful information.  Recently when working on a DotNetNuke Authentication Provider for a client I was tasked with syncing roles from the external system into DNN.  Simple enough right?  We can just use the "RoleController" and the "AddRole" method to add the role to the system. Well, that is the process but it doesn't work 100% unless you specify specific items.  The following sections show what I tried, and what actually works, along with a few notes.

Read more...

Posted by Mitchel on Wednesday, May 13, 2009

Professional DotNetNuke Module Programming Sample Update 

It has recently been brought to my attention that there were two mistakes in the GuestbookVB and GuestbookCS sample code that was provided with the Professional DotNetNuke Module Programming book.  In light of this issue I have created updated packages for these modules that you can download here.

I have also submited these updates to Wrox so that they can update their downloads as well, please use the following link to obtain the new files.

Updated Book Sample Files

As always, thank you for reading!

Posted by Mitchel on Monday, April 20, 2009

Review of SourceGear Vault Source Control Provider 

My last blog article "Selecting the Right Source Control Provider" touched on the evaluation criteria that I use when looking for a source control system. This article is a review of sorts of SourceGear's Vault product, my preferred source control system. I'll start by reviewing vault as it relates to the criteria from the previous article, I will then provide my overall feedback on my experience with Vault.

Read more...

Posted by Mitchel on Thursday, April 16, 2009

Selecting the Right Source Control Provider 

One of the most common questions that I have been getting recently has been "what source control provider do you use and why?".  This article is the first in a series of two articles about source control.  This article takes a quick look at criteria that I believe is important to consider when it comes to evaulating source control systems for use.  The next article in the series will be a review of the source control system that I use, in relation to the evaulation criteria that I list in this article.

Read more...

Posted by Mitchel on Wednesday, April 08, 2009

Creating DotNetNuke SqlDataProvider Files Using SSMS 

One of the biggest failure points I see with third-party DotNetNuke modules, including some of my first released modules were failures due to the lack of support for ObjectQualifier or DatabaseOwner values within the SqlDataProvider files.  Although the process to add support for these two tokens is easy to add, it is very hard for those of us that like to test our database structures outside of DotNetNuke before we actually commit to building our modules.  Thankfully, with a bit of research, I have found a way to build SQL Scripts for DotNetNuke using SQL Server Management Studio (SSMS) in a normal fashion and using a simple find/replace operation to bring everything into compliance with DotNetNuke integration.  This post will explore the method that I use to accomplish this.

Read more...

Posted by Mitchel on Monday, January 26, 2009

Creating a DotNetNuke User Account From Code 

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

Proper Basepath Formatting in DNN Module Manifest 

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

Previous Page       1 of 2       Next Page

Disclaimer