" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Bind All User roles of DotNetNuke Site in a Page.

Posted on November 24th, 2015 by Sibabrata Dash

In DotNetNuke there is a class RoleController present inside DotNetNuke.Security.Roles namespace, using which we can extract all the user roles present in our DotNetNuke website.. For example I am writing code for adding all existing user groups to the checkboxlist below:   test.ascx page: Added a check list box – <asp:CheckBoxList ID = “chkListUserRoles” runat = “server” […]

Technique to allow non-administrator user to add modules in a page in DotNetNuke

Posted on November 24th, 2015 by Debendra Nandi

Here is a tip to give permission to the non-administrator user so that they can add module in a page.To add that login to your site with Host credential and set a particular role lets say ‘Editor’ role. To create a role, you need to go to admin > security role and click on “Add […]

How to set permission in a specific module for a particular User/ UserGroup

Posted on November 24th, 2015 by Debendra Nandi

To give permission to a particular User/ UserGroup to access a Module in DotNetNuke, follow the steps below : Go to Admin > Security Roles. Click on “Add New Role” link Create a role let say ‘Paid Member’ Now create a new user let say ‘mindfire’ by clicking ‘Add New User’ at Admin > User […]

How to get password of a DotNetNuke login user

Posted on November 24th, 2015 by Sibabrata Dash

In DotNetNuke it is not possible to extract the original password from the Database as the password is kept in an encrypted format.  However, it can be retrieved programmatically. Even UserInfo class present in DotNetNuke can be used to retrieve login user firstName, lastname, email etc  directly but cannot retrieve password. However, we can retrieve user password by creating an object of […]

How to validate current login user role access in DotNetNuke Custom Module

Posted on November 24th, 2015 by Sibabrata Dash

In DotNetNuke there is a UserInfo class which provides methods by which we can validate if the current login user is having admin/ host or any other role access. UserInfo class is present within DotNetNuke.Entities.Modules.PortalModuleBase namespace. By default Custom module class inherits the PortalModuleBase class as shown below: partial class ViewModuleName : PortalModuleBase, IActionable { } […]

How to navigate to another page from DotNetNuke Custom module

Posted on November 24th, 2015 by Sibabrata Dash

In some situations, there is a requirement to add functionality that allows users to navigate from one page to another in DotNetNuke  Custom Module. For example, if you have a custom module called “Register”  and the user has successfully registered, you may want to navigate the user to another page to view user login detail where another custom module […]

How to create custom Login & Registration module in Dotnetnuke

Posted on November 24th, 2015 by Sibabrata Dash

In this tip I am not going to explain how to create new DNN module and its settings. Instead, I will try explaining how to register a new user and login from a custom module interface by using Dotnetnuke class methods. User Registration Interface: For building a Custom Registration module we need to have required […]

How to configure config files in front end with DNN 5.6.0

Posted on November 24th, 2015 by Debendra Nandi

The awaited news for DNN community of the release of Version 05.06.00 came on 17th Nov 2010. One of the best features in Dotnetnuke CMS is the front-end flexibility provided to the user. The new release has come up with many exciting features,one of these is the editable configuration feature. With this feature Host can […]

How to install and use telerik Rad menu in Existing DNN Skin

Posted on November 24th, 2015 by Mohit Bhayana

Telerik is a company which provides its various products for ASP.net there are many products in this field.Since the arrival of DotNetNuke version 5.2.0 Telerik and DotNetNuke form a strategic partnership in which Telerik ASP.NET AJAX Controls are distributed with every DotNetNuke Community and Professional Edition download, so that RadControls technology is exposed to the […]

How to insert a Multicolumn dropdown menu in an existing DotNetNuke Skin

Posted on November 24th, 2015 by Mohit Bhayana

Multicolumn drop down Menu is a very good option to use in any web site. This way our site can get a great looking and functioning menu structure. This megamenu structure is very difficult to attain when it comes to Dynamilcally adding it to DotNetNuke default menu structure. This menu system i am going to […]

Upgrade DotNetNuke website from version 5.6.3 to 6.0.0

Posted on November 24th, 2015 by Sibabrata Dash

Upgrade dotnetnuke website from version 5.6.3 to 6.0.0      Here I am sharing my experience how to upgrade your existing dotnetnuke site from 5.6.3 to version 6.0.0   Steps to Follow:   1. First keep backup of both website and database, required for future if somthing goes wrong in between.   2. Download dnn 6.0 upgrade […]

Dataspring Dynamic Forms Advanced Calculations.

Posted on November 24th, 2015 by CHANDAN KUMAR

‘Dynamics Forms’ module from Data Springs,is a very user-friendly DNN module. It is used to create  forms  for marketing, sales, contact forms, scheduling, information requests, surveys etc. One of it’s very important feature is options for obtaining totals using client-side calculations. Suppose we created a form and want to associate a fixed point with various […]

Customized deletion of Users from core tables in database of a DNN application.

Posted on November 24th, 2015 by CHANDAN KUMAR

Customized deletion of  Users  from core database tables of a DNN application . Core tables which contain dnn application user informations are :: aspnet_Membership,  aspnet_Users ,UserProfile ,UserPortals ,UserRoles ,Users .Note:: This is needed in many cases such as database cleanup of all test users created .As it’s quite hectic to delete each users one by […]

Config file settings in DotNetNuke Website

Posted on November 24th, 2015 by Sibabrata Dash

There are lots of settings present in web.config file of dotnetnuke website which needs to be modified according to the  requirement.   Here I am explaining a few: 1. Decryption method:   <system.web> <machineKey validationKey=”D19225F094CADDC99D298B5549EA1575572F483E” decryptionKey=”E2FD0052F2BA2A3A67F791099FA459F77E3FC96B8D6B314B” decryption=”3DES” validation=”SHA1″ /> </system.web> In the machinekey tag the decryption method and decryption key is mentioned. This set automatically done while […]

10 tips on DotnetNuke Skins for smart phones and handheld devices.

Posted on November 24th, 2015 by Mohit Bhayana

DotnetNuke skinning is changing with the latest trends one of which is building websites for smartphones and handheld devices like iPod, iPad, Android-based smartphones and many more. In this Article I have shared 10 tips which will be extremely useful for DotnetNuke Skinning for smartphones and most handheld devices. Tip #1 basic mobile styles html, […]

Road To SQL Azure

Posted on November 24th, 2015 by CHANDAN KUMAR

With the release of DotNetNuke 6.0 DNN has also joined cloud bandwagon.Here is a short description to the process of shifting of SQLServer  2005/2008 to SQL Azure.   The following steps deals with the simple preocedure to migrate your SQL Server 2005/2008 databases to SQL Azure. 1.In order to access SQL Azure, Microsoft SQL Server Management […]

DNN 6.1 Goes Mobile

Posted on November 24th, 2015 by Chandan Kumar

DotNetNUke 6.1 carries feature to find out the Device Capabilities of the device being used to access content.Namespace: DotNetNuke.Services.ClientCapability IClientCapability has the following properties: IsMobile – Is this a Mobile Device. IsTablet – Is this a Table Device IsTouchScreen – Does client have Touch capabilities SupportsFlash – Does client support Flash FacebookRequest – Is the […]

Working with jquery popup in dotnetnuke 6 modules

Posted on November 24th, 2015 by Sibabrata Dash

As DotNetNuke is completely based one dot net. In dnn module, we can use simple css customize popup, ajax modal popup as well as jquery popup. In terms of browser dependency and light weight it is better to use jquery popup. And another good thing is dnn 6 Api is also providing in-built methods to […]

API to Include Javascript/Css files for an usercontrol in DotNetNuke

Posted on November 24th, 2015 by Damodaranaidu Betha

I have tried to give the reference in the dotnetnuke module’s user control like as below. <script src=”Scripts/jquery-1.6.2.js” type=”text/javascript” /> It complied successfully.When I run  the application gave me 404 error. But the file is there in Project Scripts folder. I found that application is looking for script in localhost/dnn/…/Scripts/ jquery.ui.182.js path where the file […]

How to install a module to your DotNetNuke site/ application

Posted on November 23rd, 2015 by Debendra Nandi

Download a module form DotNetNuke site. To do so you have to register yourself at DNN site. Click on ´Download’ icon after you logged in to the site. Download a module from DotNetNuke project panel. Make sure you have downloaded the install category of the particular module. The result of the download is a zip […]

How to set Cache in DNN application/ site

Posted on November 23rd, 2015 by Debendra Nandi

It is very important to set cache timing for your applications. In DNN application/ site you can set cache in host setting page. To do that you need to login with the application/ site with host login and go to “Host Settings” page. Hit the “Advance Settings” tree and then click on “Performance Settings” link. […]

How to upload skin package in DNN site/ application

Posted on November 23rd, 2015 by Debendra Nandi

Skinning your is the most honored aspect of the administrative process. A skin is a collection of physical files (HTML, CSS etc) which decide the look and feel of your site. Admin or host of the site can be upload any skin package. Before I describe the process of how to upload skin package in […]

Help! How can I move my DNN site to production server ?

Posted on November 23rd, 2015 by Debendra Nandi

This is very important to move DNN instance from development server to production server without any error or data lose. Here are the steps to move your DNN instance from development server to production server. Add New HTTP Alias for your site to access from production server. To do so you need to click on […]

SMTP set-up instructions for DotNetNuke Application

Posted on November 23rd, 2015 by Debendra Nandi

Any application built in DNN needs to have an email going functionality, for example, DNN sends an email to the user registers on the site/ portal. The other example includes, the forum module sends an email to the owner of the threads when a reply has post etc… and it is also necessary for the […]

Inter Module Communication (IMC) between Desktop Modules in DotNetNuke

Posted on November 23rd, 2015 by Chandrabhanu Mishra

Communicating (sending messages) Listening (receiving messages). In order to add one or both of these functionalities to a modules, we must have the module class implement the respective IMC interfaces which the DNN Framework has defined for us. Implementing the IModuleCommunicator interface allows our module to dispatch messages to all the modules on the page […]

Dynamically creating Tabs And adding Modules in DotNetNuke

Posted on November 23rd, 2015 by Chandrabhanu Mishra

This example is about how to create tabs through code, set permission of tabs and embed an existing desktop module to that tab, set permission of desktop module, clear module cache, tab cache, portal cache.   using System; using System.Collections; using System.Configuration; using System.Data; using System.Collections.Generic; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using […]

DotNetNuke User Roles and Store User Permissions

Posted on November 23rd, 2015 by Chandrabhanu Mishra

This example shows how to get user roles and how to provide permissions in setting according to our purpose. I am using a grid view to show user roles and there is a check box for each user. Administrator has permission by default through code. To give permission to others, we can check the check […]