DotNetNuke Hosting with ASPHostPortal.com

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

DotNetNuke 7.4.1 Hosting - ASPHostPortal.com :: How to Use the Text DotNetNuke Skin Object

clock Augustus 28, 2015 11:54 by author Kenny

How to Use the Text DotNetNuke Skin Object

DotNetNuke is a web content management system based on Microsoft .NET. The DNN Platform Edition is open source. DNN is designed for multi-tenancy and supports an unlimited number of websites, either as root websites or for portals in a parent-child configuration. The platform's skinning feature separates content from design-related files for easier customization. Skins make it simple to maintain a common look and structure across related sites without advanced programming knowledge. DNN's core functionality can be expanded with modules for common elements, such as those for e-commerce. The software enables parent-child website resource sharing and management using specially-formed symbolic links.

How to Use the Text DotNetNuke Skin Object

What is a Skin Object?

First of all, a skin object is an ASP.Net user control that is used in DNN skins to provide a limited feature.  For example, the search box, menu, login link, copyright statement, and more, are all skin objects.  They allow a skin designer to include dynamic content without having to know how to build the content itself, or knowing any programming.

Other than the previous description, this post will assume that you know how to create and package your own skin.

Text Skin Object

The Text skin object itself is a very useful feature in skinning, as it allows you to include localized text, while not having to create a copy of the skin for each language, or using any other number of workarounds.

For example, if you have static text next to your login skin object that says, “Welcome, “ then you might want to have alternatives for another language, if you plan to support it.

I am going to use that example for the rest of this post.

The Code

There is minimal code needed to implement the Text skin object.  If you’re using an HTML skin, then you would simply need to do the following:

<object id="dnnTEXT-Welcome" codetype="dotnetnuke/server" codebase="TEXT">
    <param name="Text" value="Welcome, " />
    <param name="CssClass" value="NormalBold" />
    <param name="ResourceKey" value="Welcome.Text" />
    <param name="ReplaceTokens" value="False" />
</object>

If you are using a ASCX skin, then you would need two updates.  First, put this line of code into the top section of the source:

<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>

Next, put this code into the appropriate spot of the source in the skin:

<dnn:TEXT runat="server" id="dnnTEXT-Welcome" Text="Welcome, "
CssClass="NormalBold" ResourceKey="Welcome.Text" ReplaceTokens="False" />

Resource Files

Next, you need to make sure your skin has resource files.  In your skin package, you should have a folder namedApp_LocalResources.  This folder will contain the necessary files to tell your skin the appropriate text to use for the skin object when the specific language is asked for during page request life cycle.

If your skin file is named index.ascx or index.html, then your default resource file for English would be namedindex.ascx.resx.  If your additional supported language is French, your filename might be index.fr-FR.ascx.resx.

The English file code would be something like this:

<?xml version="1.0" encoding="utf-8"?>
<root>
  <data name="Welcome.Text">
    <value>Welcome, </value>
  </data>
</root>

The respective code for the French language file might look like this:

<?xml version="1.0" encoding="utf-8"?>
<root>
  <data name="Welcome.Text">
    <value>Accueil, </value>
  </data>
</root>

Text Skin Object Properties Explained

There are a few properties that you’ve seen in the previous examples that you might be wondering about.  Here is an explanation of those properties:

  • Runat – (required, ASCX only) The value must be ‘server’ 
  • Id – (required) This is a unique name for the tag, much like in standard HTML 
  • Text – (optional) This value will be used as the default, should an appropriate resources file for the current language not be found 
  • CssClass – (optional) This value is the name of a CSS class that will be available to the rendered HTML page to stylize the text in the web browser 
  • ResourceKey – (required) This value references the id (name) of the text to retrieve from the resources file 
  • ReplaceTokens – (optional) This true/false value will tell DNN to look for system tokens and replace them with the appropriate text


DotNetNuke Hosting - ASPHostPortal.com :: How to Solve DNN 7 can't go into edit mode or not working with control bar

clock Augustus 18, 2015 07:33 by author Dan

Today when i install the DNN 7 then i found and issue in edit mode after installation.

The problem is when i go to edit mode the page refresh with out enabling the edit mode, after a short research on Google i found the solution. I hppe it save your time

  1. Backup your web.config
  2. Open your web.config in a text editor
  3. Within the web.config file, find the <system.webserver><modules> section.
  4. If the <modules> section says <modules runAllManagedModulesForAllRequests="false"> change it to <modules runAllManagedModulesForAllRequests="true"
    OR if it just says <modules>, change it to <modules runAllManagedModulesForAllRequests="true">
  5. Save the config file.
  6. Retry by refreshing the page and trying again.  You can also test this out by trying to a do a journal post (which also uses the services framework in an authenticated way.

If some how its will not work then, you must change the control panel bar from control bar to ribbon bar

Here are the steps
Go to host tab > Host settings > Other settings > Change control panel bar from control bar to ribbon bar

Regards

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.



ASPHostPortal.com Announces ASP.NET 4.6 Hosting Solution

clock Augustus 13, 2015 09:10 by author Dan

Nowadays, anybody can afford to order a feature-packed web hosting plan for next to nothing; however, affordable price is not the only criterion which should be considered when purchasing web hosting services. The basics of what you should look for in choosing a web hosting company, not just concentrating on the best price and features, but also on reliability and honesty. You're investing your money and effort into finding paying customers and you wouldn't like to lose them in order to save a few dollars per month on a web hosting service. ASPHostPortal.com is reliable and honest ASP.NET hosting provider for you. Today, we offer ASP.NET 4.6 hosting with excellent service and responsive support.

ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites. It allows you to use a full featured programming language such as C# or VB.NET to build web applications easily. ASP.NET is in the process of being re-implemented as a modern and modular web framework, together with other frameworks like Entity Framework. The new framework will make use of the new open-source .NET Compiler Platform and be cross platform. ASP.NET MVC, ASP.NET Web API, and ASP.NET Web Pages will merge into a unified MVC 6.

ASP.NET 4.6 is an umbrella term used to describe updates existing Frameworks such as ASP.NET Web Forms/ MVC 5/ Web API 2 etc. You can build Web Apps using these Frameworks on the standard, desktop-enabled .NET Framework model. Apart from working on ASP.NET 5, we are also working on updating Frameworks in ASP.NET 4.6. You can expect changes around supporting platform updates. These includes updates in .NET for .NET Compiler Platform (Roslyn) and hosting changes in IIS to support HTTP/2.

ASPHostPortal.com serve people since 2008 and we know how to deliver Powerful, Fast and Reliable ASP.NET 4.6 Hosting with the Superior Customer Support. Fully managed and monitored around the clock, our servers run on Windows Operating system with lots of memory (RAM) and up multiple Quad-Core Xeon CPU's, utilizing power of the Cloud Services. Their ASP.NET 4.6 Hosting plans come with up to 99.99% uptime and 30-Day Full Money Back Guarantee. To learn more about ASP.NET  4.6 Hosting, please visit http://asphostportal.com/ASPNET-46-Hosting

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux 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, Latest MySql version, Latest PHPMyAdmin, Support PHP 5.x, etc. Their service include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. 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 :: How to use DnnExceptionFilterAttribute

clock Augustus 11, 2015 06:16 by author Dan

Often when writing DNN Service Framework methods (based on ASP.NET Web API) you find yourself writing the same boiler plate error-handling code.  Figure 1 shows an example of this boiler-plate code.

Figure 1: An example of a Service Framework Action Method

[HttpPost]
public HttpResponseMessage DeleteTask(TaskDTO taskDTO)
{
try
{
using (var context = DataContext.Instance())
{
var repo = context.GetRepository();
var task = repo.GetById(taskDTO.TaskId, ActiveModule.ModuleID);

repo.Delete(task);
var result = new {Result = "success"};
return Request.CreateResponse(HttpStatusCode.OK, result);
}
}
catch (Exception exc)
{
var result = new { Result = exc.Message };
return Request.CreateResponse(HttpStatusCode.InternalServerError, result);
}
}


This is great that we write code with explicit error handling, but it can get repetitive.  Fortunately ASP.NET Web API provides a way to make this a lot easier – to encourage us to use good error-handling practices.  Web API provides an ExceptionFilterAttribute base class.  This attribute can be applied at the class level or at the method level.  If applied at the class level it applies to all action methods. in the class. The ExceptionFilterAttribute base class has one method OnException which is called if there is an unhandled exception in the action method.

In order to provide support for DNN’s localization framework, the Dnn Services Framework includes a subclass of this base class – DnnExceptionFilterAttribute.  This class provides two properties which gives the developer the ability to provide a MessageKey, and a LocalResourceFile.  Each of these has a default – MessageKey defaults to {ControllerName}_{ActionName}.Error where ControllerName is the name of the controller class and ActionName is the name of the action method where the error occurs, and LocalResourceFile defaults to the global Exceptions.resx resource file.

Lets see how our Delete action method will look if we use the DnnExceptionFilterAttribute.

Figure 2: The Delete Action Method modified to use DnnExceptionFilter

[HttpPost]
[DnnExceptionFilter(MessageKey = "DeleteTask.Error")]
public HttpResponseMessage DeleteTask(TaskDTO taskDTO)
{
using (var context = DataContext.Instance())
{
var repo = context.GetRepository();
var task = repo.GetById(taskDTO.TaskId, ActiveModule.ModuleID);

repo.Delete(task);
var result = new {Result = "success"};
return Request.CreateResponse(HttpStatusCode.OK, result);
}
}


This is a lot less work to do – while still retaining excellent error-handling.

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.



ASPHostPortal.com Announces Orchard 1.9 Hosting Solution

clock Augustus 6, 2015 09:31 by author Dan

ASPHostPortal.com is trusted web hosting provider since 2008. Our data center is located on 4 continents (US, Europe, Asia, and Australia). We provide Premium Orchard 1.9 Hosting plans on high performance servers and high-speed internet connection in the world. Every server is equipped with at least 2x Intel Xeon Quad-Core processors and massive amounts of memory. We are using SSD's for storage, which provides much higher performance in terms of I/O and data transfer speed. The servers are connected to the network using multiple 1Gbps ports (bond network), so your Orchard site will run smoothly with no downtime connection.

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform. Orchard is built on a modern architecture that puts extensibility up-front, as its number one concern. All components in Orchard can be replaced or extended. Content is built from easily composable building blocks. Modules extend the system in a very decoupled fashion, where a commenting module for example can as easily apply to pages, blog posts, photos or products. A rich UI composition system completes the picture and ensures that you can get the exact presentation that you need for your content.

Orchard 1.9 releases for powering your live sites, and is the result of years of development effort and contribution from the Orchard Team and their active community. Also be sure to check out the gallery website (and related open source project). This provides a simple way to upload and share your module and theme ideas. Orchard 1.9 fixes bugs and introduces the following changes and features likes ; Tokens are evaluated by layout elements, Fixed performance regression for widgets, Fixed localization string encoding, Improved native clipboard support in layout editor, New heading, fieldset and break elements for the layout editor, and etc.

ASPHostPortal.com support team has lots of experience in website designs using Orchard tools, particularly Orchard CMS. We know how to deliver Powerful, Fast and Reliable Orchard Hosting with the Superior Customer Support. We only use the best hardware, super fast network, covered by 24/7 Support Team. Our Orchard Hosting plans come with up to 99.99% uptime and 30-Day Full Money Back Guarantee. To learn more about Orchard 1.9 Hosting, please visit http://asphostportal.com/Orchard-Hosting

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux 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, Latest MySql version, Latest PHPMyAdmin, Support PHP 5.x, etc. Their service include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. 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 :: How to move a MS-SQL database to another server for DotNetNuke installation

clock Augustus 5, 2015 07:07 by author Dan

To move a MS-SQL database to another server for DotNetNuke installation, you can follow this steps :

  • Make sure to backup SQL(MS-SQL) server data and DNN(dotnetnuke) files before moving.
  • Copy DNN files to the new server, restore the SQL data into the new SQL server.
  • Delete the default DNN user login after you restore the SQL backup on the new server, I had experience that the old DNN user cannot login to the new SQL server and return a page is unavailable when you load the web pages.
  • The SQL server may not let you delete the old user so easily, following are the steps I used.  First, delete the old user from the Security thread on the SQL server.  Then locate the DNN database and looks for the old user on the security thread within the DNN database.  You cannot delete the old user now, you must go to the roles, and locate the database roles thread, under this thread, there are several items with the word aspnet in the beginning.  Click its property and look for its owner, most likely it will be the old user name, change all these aspnet items owner to dbo.  After you made these changes, you can delete the old user from security thread.
  • After fully deleted all old user items, you can create a new user login in the Security thread (not that one on the DNN database), map the new user to the DNN database and with db_owner right.
  • After you created the new user, go to DNN database -> roles -> database roles, locate all aspnet items and change the owner to the new user you just created.
  • After these changes, your SQL should be okay.

Best DotNetNuke Hosting Recommendation

ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.



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


Corporate Address (Location)

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

Tag cloud

Sign in