DotNetNuke Hosting with ASPHostPortal.com

BLOG about DotNetNuke CMS, latest technology and Special DotNetNuke Hosting Package with ASPHostPortal.com

DotNetNuke Hosting - ASPHostPortal.com :: Custom Profile Properties Cannot Be Chosen for Custom Registration Type (DNN 7)

clock Januarie 20, 2015 05:43 by author Ben

DNN 7 makes it possible for customization on the registration kind by way of an easy interface, with intellisense. You simply choose "Custom" for Registration Type Type in Admin - Site Settings - User Account Settings tab and also you can add all of the fields you prefer to your registration form.

In the moment of writing, this doesn't appear to function nicely with custom registration properties (i.e. fields you might have designed oneself by way of the "Profile Settings - Add New Profile Home button beneath on the same tab). If you try and kind a custom property's name around the Registration Fields box, it just will not come up (despite the fact that it's been reported that properties of datatype "Text" do come up).

In an effort to make these properties obtainable for your registration type until a repair is applied to this, you are able to use SSMS (supplied which you have access and knowledge using it) and do the following:

  • Go to your DNN database
  • Open the "PortalSettings" table for edit and find the record which has the worth "Registration_RegistrationFields" in the "SettingName" field
  • You will see that the "SettingValue" field is really a comma-delimited list containing the field aliases of the properties that are to become displayed on the custom registration form. Add the aliases of the own fields within the list.
  • Update the table and visit your DNN installation (as the Host user), and click on Tools - Clear Cache
  • If every thing goes nicely, you will see that the "Registration Fields" box now contains your properties too, and they'll appear generally on the registration form.


An additional approach to do that would be to use the Host - SQL section on your DNN installation. To find out the present profile properties that are displayed on the custom registration type, sort this in to the Script box and click "Run Script":

SELECT
SettingValue
FROM  {databaseOwner}{objectQualifier}PortalSettings
WHERE
SettingName = 'Registration_RegistrationFields'


In order to add one or more fields at the end of the list, you must run something like this (where 'MyField' is your custom field's alias). Remember the comma and use no spaces.

UPDATE 

{databaseOwner}{objectQualifier}PortalSettings
SET
SettingValue = SettingValue + ',MyField'
WHERE
SettingName = 'Registration_RegistrationFields'

After you run it, go to Tools and click Clear Cache and you will see your fields on the "Registration Fields" box in the Admin - Site Settings - User Account Settings tab.

If you still need more power and customization with your custom registration page, take a look at the Dynamic Registration module from Datasprings - at the moment of writing this, version 5.0 has just been released for DNN 7.x.
 
Standard disclaimer: When you do stuff like the above on your database, you do it at your own risk, and I have no responsibility should you damage your database, your computer, or the universe. Always have a backup handy! :)

Until next time!

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. ASPHostPortal.com has ability to support the latest Microsoft and ASP.NET technology, such as: such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch. ASPHostPortal include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and architecting highly scalable solutions. ASPHostPortal.com strives to supply probably the most technologically advanced hosting solutions available to all consumers the world over. Protection, trustworthiness, and performance are on the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



DotNetNuke Hosting with ASPHostPortal :: How to Add jQuery To Your DNN Skin

clock Januarie 19, 2015 05:39 by author Mark

This Article will explains How to Add jQuery to your DNN Skin. At this point you’ll be hard pressed to find a site that does not use jQuery. It has become a requirement for many to bring flash like experience in the form of photo sliders or fast responding ajax applications.
Over that time adding jQuery to DotNetNuke (DNN) has not always been straight forward. DNN ships jQuery as part of the core framework and you might assume that it’s always available. But one of the most widely unknown issues is that it must be requested on every page in order for it to be available.

Common Symptoms:

  • Main menu does not show sub items.
  • Homepage slider does not rotate.
  • Layout is malformed.
  • Works fine when logged in but not when logged out.

"When you login as an administrator jQuery will always be available since the control panel bar request it. However if you logout on that same page it might not have been requested by any module or skin object on that page".

Not Recommended Ways To Add jQuery

Do Not: Add script tag into page settings or in your skin file.
Why? This will potentially add multiple jQuery reference to your page. The real issue is if any plugins are registered between the first reference and the second reference they won’t be available after the second reference is instantiated.

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

Recommended Way To Add jQuery

In your skin file you you can reference and add the control for jQuery. This will ensure that jQuery is available on every single page and that it will only be referenced one time. You also get the benefit of the Client Dependency Framework (CDF).

<%@ Register TagPrefix="dnn" TagName="jQuery" src="~/Admin/Skins/jQuery.ascx" %>
<dnn:jQuery runat="server"></dnn:jQuery>

You can optionally add public properties to register jQuery UI, DNN jQuery Plugins and Hover Intent.

<dnn:jQuery runat="server" jQueryUI="true" DnnjQueryPlugins="true" jQueryHoverIntent="true"></dnn:jQuery>

TOP Recommended DotNetNuke 7.3.4 Hosting

ASPHostPortal.com is a windows-based hosting service provider. ASPHostPortal.com offers the most reliable and stable DotNetNuke 7.3.4 web hosting infrastructure on the net with great features, fast and secure servers. DotNetNuke 7.3.4 Hosting from ASPHostPortal.com provides a safe, reliable and performance-driven foundation for your  website. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability. 



DotNetNuke Hosting - ASPHostPortal.com :: jQuery Tips for DotNetNuke Developers

clock Januarie 16, 2015 05:51 by author Ben

Make sure you call jQuery.noConflict();. This is necessary to not cause other client scripts and libraries to run errors. This is due to the fact that other client scripts might be using the $ designator for a JavaScript class. [jQuery.noConflict(); documentation]


If manually adding jQuery, try to load the jQuery library in the header before all others. Not doing this can lead to the jQuerylibrary not being loaded before another client script or library tries to use it. This is especially true of jQuery plugins.

Always call the jQuery core methods using the jQuery() format. This is related to the previous issue.

Check the jQuery plugin source code. Not all jQuery plugins use the long form of calling jQuery. This can result in errors if you have called jQuery.noConflict();.

In DNN 7+, register jQuery. DNN 7+ allows module developers to register jQuery to be loaded only when modules need it. Just callDotNetNuke.Framework.jQuery.RequestRegistration(). This prevents jQuery from being loaded when it’s not used. If your skin is using widgets, this is not necessary, but should be done for commercial modules regardless.

Use the jQuery hosted option. Look in the Host Settings (DNN 7). This is not necessary, but can reduce page load times, since the site visitor may already have the library loaded in case. However, if the hosted source is having problems hosting the library, your page load times could increase dramatically, as well as not load the library at all. Either way, your client side-code will break.

Only use jQuery Debug Version for debugging. Look in Host Settings (DNN 5). By default, DNN loads the jquery.min.js file. However, when you are debugging jQuery, this makes it nearly impossible to debug. Check this setting to tell DNN to load the uncompressed version of the jQuery library. Only do this on development machines, if possible.


Wrap onload scripts in a ready() function. Wrapping your scripts in the ready() function prevents conflicts with other scripts on the page, including Microsoft scripts, and the DNN Client API.

Best DotNetNuke Hosting Recommendation

Following reviewed for Best ASP.NET hosting companies that help with DotNetNuke, ASPHostPortal is Best ASP.NET Hosting for DotNetNuke Recommendation. They give 99,99% uptime assured, as well as 30 Days Money back assured, best friendly customer service, and many more.



DotNetNuke Hosting - ASPHostPortal.com :: Managing 'Couldn't load type "Dotnetnuke.common.global"

clock Januarie 15, 2015 06:50 by author Dan

Introduction

Today we will show you about Managing 'Couldn't load type "Dotnetnuke.common.global".There are a thousand reasons this feared message can show up, yet suppose it is possible that it shows up on a site that you are 100% certain no one has messed with in any capacity other than transferring documents for a long while.

The problem

The error itself is as follows:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'DotNetNuke.Common.Global'.

Source Error:

Line 1:  <%@ Application Inherits="DotNetNuke.Common.Global" Language="VB" %>
Source File: /global.asax    Line: 1

The setting

That was precisely the case I confronted today when a customer called me and reported the lapse. The customer was totally certain that no progressions had been performed other than transferring a few records, both to the application and the server itself (no redesigns, no apppool changes, no iis design changes). Just to be protected, I checked the dates of the records in the container envelope and additionally the date of the global.asax record and all had not been changed amid the recent months.

Conceivable reasons

Seeking the Web, I was panicked to see that there were in any event a couple of dozen conceivable reasons for this lapse. Case in point, there's a multi-page string in the Dotnetnuke discussions dicussing this blunder. Unfortunately, the greater part of the cases respected moves up to the center stage, recompiling or other stuff that had been changed.

So what else could not be right? All things considered, I again found than when something appears incomprehensible, it doesn't generally must be some amazingly confounded specialized issue.

Solution

The customer had admittance to the full site root by means of a FTP client. After attempting to transfer stuff, the customer coincidentally moved the App_data organizer inside an alternate envelope. That was it! I moved the App_data organizer once more to the root and everything was fine once more.

What I realized from this occurrence: Always search for the least difficult conceivable reason for a blunder first. Trust it bails some of you out there.

Best Recommendation for DotNetNuke Hosting

ASPHostPortal.com is The Leader of Best DotNetNuke Hosting Provider. They provide DotNetNuke Hosting with Affordable Price, Fast & Stable Network, and Structured Recovery System. They start their hosting plan from $1/month. With that price, your data will be safe and always properly backed up. Moreover, they also provide uptime and 30 days money back guarantees for all hosting plan. They have 5 different data centers in the world that can give best support for your DotNetNuke site. With their complete features and cheap price, your DotNetNuke site will be turn into great performance.



DotNetNuke Hosting with ASPHostPortal :: Step by Step Perform a Global Find / Replace on the Text / HTML Module in DotNetNuke

clock Januarie 14, 2015 07:49 by author Mark

How to Perform a Global Find/Replace on the Text/HTML Module in DotNetNuke

Today I will explains how to perform a global find/replace on the text/html module in DNN. If you need to replace content that is stored in the Text/HTML module in your DotNetNuke installation you could manually edit every text/html module, but you can also perform a global find/replace on all the content stored in that module through your database using the script below.

Before starting this process, you should make a complete backup of your website and database.
These steps require you to have Microsoft SQL Server Management Studio installed on your computer. 

declare @FIND as nvarchar(MAX)
declare @REPLACE as nvarchar(MAX)
set @FIND = 'ORIGINAL'
set @REPLACE = 'NEW'
update HtmlText set Content = cast(replace(cast(Content as nvarchar(max)),@FIND, @REPLACE) as ntext)

  • Open Microsoft SQL Server Management Studio and connect to your database.
  • Click on the New Query button.
  • Copy and paste the following script into the New Query window replacing ORIGINAL with your original value and NEW with the new value, please see the note below for information on these values.
  • Click Execute.

Notes
When you are deciding what you want to find and replace, it is best to always be as exact as possible in order to avoid making unintended replacements.  For example, let's say that you recently moved a DotNetNuke website from a virtual directory named /DotNetNuke into the root.    
                                                                                     

You want to update all links so that they remove DotNetNuke.There are a couple different ways that you may be tempted to do this:

Bad
@Find = 'DotNetNuke'
@Replace = ''

The problem with this is that it will find all copies of the word 'DotNetNuke' and replace it with nothing.  With this script, it will replace all instances of 'DotNetNuke', not just ones that are in URLs, so if you have content on your page about DotNetNuke, you'll lose this content.

Acceptable
@Find = '/DotNetNuke/'
@Replace = '/'

This script is better, however, it is not perfect.  Most likely, anywhere that /DotNetNuke/ is listed, it will be part of a URL, however, it won't necessarily be completely accurate.  For example, let's say that you have a URL such as /DotNetNuke/AreasOfExpertise/DotNetNuke/DotNetNukeProjects.aspx when the script above is run, the URL will be shortened to /AreasOfExperties/DotNetNukeProjects.aspx which is most likely not what you would have wanted.

Best
@Find = '&quot;/DotNetNuke/'
@Replace = '&quot;/'

This script is much better because it has the &quot; at the beginning. (This is the encoded version of the double-quote charater).  This is the best is because all URL references are going to follow a pattern similar <a href="/DotNetNuke/Page.aspx">Link</a> or <img src="/DotNetNuke/images/MyImage.gif" /> so we can safely assume that all URLs start with a quote followed by /DotNetNuke/.

TOP Recommended DotNetNuke 7.3.4 Hosting

ASPHostPortal.com is a windows-based hosting service provider. ASPHostPortal.com offers the most reliable and stable DotNetNuke 7.3.4 web hosting infrastructure on the net with great features, fast and secure servers. DotNetNuke 7.3.4 Hosting from ASPHostPortal.com provides a safe, reliable and performance-driven foundation for your  website. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability. 



ASPHostPortal.com Proudly Announces Umbraco 7.2.1 Hosting

clock Januarie 13, 2015 08:49 by author Dan

ASPHostPortal.com, The Best, Cheap and Recommended ASP.NET Hosting offers Umbraco 7.2.1 Hosting with a combination of affordable price, excellent network, and 30 days money back guarantees. ASPHostPortal.com also provides full trust web hosting services for Umbraco 7.2.1 site.

Umbraco is a fully-featured open source content management system with the flexibility to run anything from small campaign or brochure sites right through to complex applications for Fortune 500's and some of the largest media sites in the world.

Umbraco is easy to learn and use, making it perfect for web designers, developers and content creators alike. Umbraco is strongly supported by both an active and welcoming community of users around the world, and backed up by a rock-solid commercial organization providing professional support and tools. Umbraco can be used in its free, open-source format with the additional option of professional tools and support if required.

ASPHostPortal.com, a windows-based hosting service provider offers the most reliable and stable Umbraco 7.2.1 web hosting infrastructure on the net with great features, fast and secure servers.  We has built the network like no other hosting company. Every facet of the network infrastructure scales to gigabit speeds with no single point of failure. All of windows hosting plan supports Umbraco 7.2.1 and customers can install it with just one click.

ASPHostPortal.com offer professional Umbraco 7.2.1 site start from $5/month. The following are the reasons why the customers choose and keep trust with our service:

High Performance and Reliable Server
We never ever overload the server with tons of clients. We always load balance the server to make sure we can deliver an excellent service, coupling with the high performance and reliable server.

Daily Backup Service
We realise that customer’s website is very important to their business and hence, we never ever forget to create a daily backup.

Best and Friendly Support
Our support team is extremely fast and can help you with setting up and using Umbraco 7.2.1 on your account. Our customer support will help you 24 hours a day, 7 days a week and 365 days a year.

ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. With the Umbraco 7.2.1 in their hosting deal will make ASPHostPortal continue to be the Best ASP.NET hosting providers. To learn more about Umbraco 7.2.1 Hosting, please visit http://asphostportal.com/Umbraco-Hosting

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. ASPHostPortal.com has ability to support the latest Microsoft and ASP.NET technology, such as: such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch. ASPHostPortal include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and architecting highly scalable solutions. ASPHostPortal.com strives to supply probably the most technologically advanced hosting solutions available to all consumers the world over. Protection, trustworthiness, and performance are on the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



DotNetNuke Hosting - ASPHostPortal.com :: Easily Embed a Google Hangout on Your Website

clock Januarie 13, 2015 05:51 by author Ben

If you’re not sure what a Google Hangout is, well…  You’ve been under a rock for a while.  Simply put, this is a very easy and web-based way to talk to someone face-to-face, from any nearly web-based device that has a web browser.  You can do this one-on-one like with Skype, or you can use this for more of a public webinar kind of use case.  It’s part of the whole Google+ suite of features.  Even if you’re not actively using Google+, this feature is pretty sweet.  It’s amazing what they’re able to enable you to do with a web browser!  If you’re doing the latter, you might want to read on…


It’s been a long while since I’ve released a NEW module into the DotNetNuke community – maybe at least a year ago since my last release.  It’s been even longer since I’ve blogged here, and I am sorry for that.  But as I said on twitter the other night, I’m back! I’ve had some modules go out into the wild that you might not have heard of, including a couple for user groups as proof of concepts, and even an update to the Media Module in February.  (Do a search for “user group labs” for the others on codeplex.)

Google Hangout for DNN

If you’re reading this and not using DNN, sorry.  But this is an open source module, so if you’re a developer, you can take a look at the source for this module (and many of my others) on github.  You’ll be able to see this module in action next week though for a live DNN webinar with

Peter Donker (T|B|L), Joe Brinkman (T|B|L), and myself.  You can follow our twitter feeds to get those details as soon as they’re available.

“Hey Will.  Why should I build a module for this?  Google Hangouts has an embed code.  I can just copy and paste it.”

If you are asking yourself that, you’re absolutely right, and there’s nothing to prevent you from doing that.  However, having a module to manage this gives you the benefit of structured content, ability to delegate management of Hangouts to non-technical people, and there are more features and purposes planned for this module that will be announced later.

DNN Hangout Features

This is a first release, so there is going to of course be a minimal number of features, and they include:

    Quickly add a Google Hangout via copy/paste
    Template available to change how the module is displayed to users
    Show start date/time and duration for future/past Hangouts

For those of you that are developers, here is a feature list for you!

    Uses content items for the DAL
    Uses DNN token replace
    Uses PortalSecurity for user input filtering

This version 01.00.00 release has the following minimum requirements.

    DNN version 07.03.04
    SQL Server newer
    Microsoft.Net version 4.0 or newer

How do I use DNN hangout?

Today, the features are simple…  You create a hangout in Google Hangout.  It can be a regular hangout, but what this module is really meant for is On Air Hangouts.  These are the kind of hangouts where you would be broadcasting an even to the public.

Next, you copy the hangout URL, video ID, or embed code.  This module will accept them all and magically grab the information it needs from you.  Go into the module’s edit view to manage those settings.

Once you see the edit view, add the relevant information, including the Google Hangout information you copied earlier.

You even have some sample Google Hangout addresses to test and compare with to make sure you’re adding the right information.  As long as you add the right address, it will be parsed and the video ID will be the only thing that remains once you save.

Now that you have the right information in place, you can save your new hangout and you’ll see it immediately on the page.

This is probably not how you want your hangout to be displayed on you site.  Don’t worry…  You’re covered with the module settings.  Just update the default template with your own HTML and use the placeholder tokens to add the hangout information in the places of the HTML that you want.  Once you save it, your changes will be reflected on the page.  You should know that this module also supports DNN tokens, so feel free to add things like user personalization if you want.


Best DotNetNuke Hosting

Following reviewed for Best ASP.NET hosting companies that help with DotNetNuke, ASPHostPortal is Best ASP.NET Hosting for DotNetNuke Recommendation. They give 99,99% uptime assured, as well as 30 Days Money back assured, best friendly customer service, and many more.



DotNet Nuke Hosting with ASPHostPortal :: How To Deploy LightSwitch Application as DotNetNuke Module

clock Januarie 12, 2015 06:38 by author Mark

Deploy LightSwitch Application as DotNetNuke Module

Visual Studio LightSwitch is a Microsoft tool used for building business applications. If you want your LightSwitch application to be deployed as a DotNetNuke then you can.
DotNetNuke is the leading Web Content Management Platform for Microsoft .NET, powering more than 700,000 web sites worldwide. Whether you need a content management system (CMS) for your personal web site or for a Fortune 500 company, DotNetNuke has a solution that fits your needs.
Before deploying your LightSwitch applications in DotNetNuke you will need DotNetNuke (using ASP.NET).

  • Step 1 : Open Visual Studio LightSwitch->Create new table.
  • Step 2 : Create a table such as Task.
  • Step 3 : Now we will add a screen. Right click on screens->Add screen.
  • Step 4 : Select list and details screen->Select screen data (Task)->Ok
  • Step 5 : Click on write code->Select Task_Created.

Code

using System;
using System.Collections.Generic;using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace LightSwitchApplication
{
    public partial class Task
    {
        partial void Task_Created()
        {
            this.UserName = this.Application.User.Name;
        }
    }
}

Description : This code set the Username field to the "Application.User.Name".

  • Step 6 : Go to properties in the Solution Eexplorer.
  • Step 7 : Click on access control-> select Use Forms authentication.
  • Step 8 : Now click on application type-> select Host application services on IIS.
  • Step 9 : Go to configuration manager in debug.
  • Step 10 : Select release mode in debug.
  • Step 11 : Go to build in menu bar->Publish your application (DotNetNuke).
  • Step 12 : Click on publish for publish your application.

 

  • Step 13 : Run application (Press F5). Now you can create task in DotNetNuke framework.

 

 

 

 

 

 

 

 

 

 

 

 

 

 



BIG DISCOUNT 70% for Windows Shared Hosting on ASPHostPortal.com

clock Januarie 9, 2015 11:28 by author Dan

Best ASP.NET Hosting :: BIG DISCOUNT Recommendation

Good news for you are searching Best ASP.NET Hosting. ASPHostPortal.com, The Leader of ASP.NET Hosting offer BIG DISCOUNT 70% for their Windows Shared Hosting Plan. They also give uptime and 30 days money back guarantees. There are so many clients prove that ASPHostPortal give fast & stable network, and best technical support. We highly recommend you to host your site on ASPHostPortal.com.

Click the following picture to see their hosting plan. For order and more information please visit ASPHostPortal official site at http://asphostportal.com or please contact them by email at [email protected]

About ASPHostPortal.com

ASPHostPortal.com is Microsoft No #1 Recommended Windows and ASP.NET Spotlight Hosting Partner in United States. Microsoft presents this award to ASPHostPortal.com for the ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch.



DotNetNuke Hosting - ASPHostPortal.com :: Using Master Pages and ASPX Pages in DNN

clock Januarie 9, 2015 11:06 by author Ben

In this post, we are going to see how we can add new aspx pages in DotNetNuke by re-using the existing skin designs to implement some helpfull programming in it.

Why?

If you are running a multi-portal dnn website and want to build some common pages to share between those portals, there are couple of quick ways to do that.

  • Create a new tab in portal 0 and then share link in all other portals.
  • This technique works fine when you want to show "how to" page or help page, static contents or offers related pages. You don't need any custom coding for this and it will be a matter of adding a text html module and paste the html that you designed!
  • Create a new aspx page and share link in all other portals. Well, this one also looks similar to first option but let's think about this: If you are running a multi-portal dnn site and want to show latest offers from all the portals into a page based on user's country, and users having at least 5 orders in history. Now, this will involve some quick coding to do. So, basically, if you want to show content based on some dynamic parameters like user or portal data or similar data, it will be good to create an aspx page.

There is another option! obviously you can create a new module to do this, but remember that we are not doing anything that depends on moduleId or tabId but depends on UserId or PortalId, so I believe it's a quick way to create a new page in place of building an entire dnn module.

How?

  • Create a new theme
    Create a new theme with the name of your skin and paste your skin's css and images into it.
  • Create a new master page
    Create a new master page and paste your skin's ascx control's entire markup over there. Replace all your content pane (i.e. div or tds with runat=server) with CotentPlace holder
  • Create a new page
    • Add a new aspx page called Default2.aspx and select the new master page when creating it.
    • Go to .aspx.vb file and make your parial page class inherit from DotNetNuke.Framework.PageBase in place of System.Web.UI.Page 
    • And that's it you are ready to go!

Conclusion

It is really easy to add a new aspx page in dnn that is re-using skin and you will be able to access all the information like PortalSettings, UserInfo etc. Things like Tab and Module will not be there and it's obvious! This post doesn't say you should create a new aspx page in some cases or not, but demonstrates how to do it if you want. If you have some good examples WHEN we can use it or some good examples WHEN we should NOT use it, I welcome them!

This example will probably work with dnn 4.x, 5.x, 7.x, though I've used this in dnn 5.2.0 and 7.3.4.

 



About ASPHostPortal.com

We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions

Author Link


 photo ahp banner aspnet-01_zps87l92lcl.png

Corporate Address (Location)

ASPHostPortal
170 W 56th Street, Suite 121
New York, NY 10019
United States

Tag cloud

Sign in