Thoughts from the Wet Coast

The musings of an ASP.NET Developer from Canada's We(s)t Coast

Articles

Module Development in DNN 8: 6 - Handling Module Actions in MVC and SPA modules

This blog was originally posted on the DNN Community blog

DNN 8 will support creating modules using ASP.NET MVC version 5.1 (or later) as well as using a SPA (Single Page Application) module using HTML 5, JavaScript and ASP.NET Web API.  In previous blogs in this series I have described how these modules can be built and I have shown how localization is handled.  One topic still to describe is how both of these approaches can register module actions so they show on DNN’s module action menu.

Jul 15 2015

Module Development in DNN 8: 5 - New tokens to support building pure SPA modules

https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Roman_Baths_in_Bath_Spa%2C_England_-_July_2006.jpg/276px-Roman_Baths_in_Bath_Spa%2C_England_-_July_2006.jpgThis blog was originally posted on the DNN Community blog

DNN 8 will support creating modules using a SPA (Single Page Application) model using HTML 5, JavaScript and ASP.NET Web API based web services.  In a previous blog in this series I showed how you can set up your environment to create SPA modules. This model development style has been available ever since we added support for ASP.NET Web API, but in DNN 8 we have added support for html files to be module controls.  This means that we no longer require some form of code-behind file.  So how do we do things like registering JavaScript files that we used to do in those code behind files.  In this blog I describe how we have extended DNNs token support to provide these abilities.  As before the source code for my examples is available on Github at https://github.com/cnurse/DnnConnect.Demo.

Jul 10 2015

Module Development in DNN 8: 4 - Localization support for MVC modules

DNN_Loves_MVC_LogoThis blog was originally posted on the DNN Community blog

DNN 8 will support creating modules using ASP.NET MVC version 5.1 or later.  In previous blogs in this series I showed how you can set up your environment to create MVC modules and I created my first MVC Action/View. In this blog I will describe the support we have included for localizing text in MVC Controllers and MVC Views.  As before the source code for my examples is available on Github at https://github.com/cnurse/DnnConnect.Demo.

Jul 9 2015

Module Development in DNN 8: 3- Introduction to SPA modules

https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Roman_Baths_in_Bath_Spa%2C_England_-_July_2006.jpg/276px-Roman_Baths_in_Bath_Spa%2C_England_-_July_2006.jpgThis blog was originally posted on the DNN Community blog

In addition to ASP.NET MVC modules, DNN 8 will support SPA (Single Page Application) modules, developed purely with HTML JavaScript and Css, together with ASP.NET Web API based Web Services on the Web Server.  DNN currently supports this module type – to a degree - but the HTML is required to be in the WebForms User Control.  A number of the newer modules have been built this way, for example the Core Messaging module and Membership modules found in the User Profile are built in this way.

Jun 20 2015


Module Development in DNN 8: 1 – Introduction to MVC modules

This blog was originally posted on the DNN Community blog

DNN_Loves_MVC_LogoA new CTP for DNN 8 was released this week.  This CTP contains updated support for building modules using the ASP.NET MVC Framework as well as new support for building HTML 5 based modules.  This adds to the existing support for building modules with ASP.NET WebForms (User Controls) and Razor scripts. 

Jun 16 2015

JavaScript For C# Developers: 2. Everything is an Object

JavaScript is actually quite a simple language.  It is described as a loosely typed language, which means that unlike C# it doesn’t enforce a strict “typing” model. 

In fact, in JavaScript, aside from a few primitive value types, everything is an object.  Ok, some of you C# developers are saying – that’s true of C#, everything in C# is considered an object.  The difference is that whereas in C# everything is an instance of a class which "derives” from the Object class, everything in JavaScript actually is an object.

May 20 2015

JavaScript For C# Developers: 1. An Introduction

JavaScriptI am a Web Developer – and so you would think that I use JavaScript as a routine part of my job. 

However, until recently I have been mainly involved writing “server-side” Visual Basic or C# code in the ASP.NET Web Forms model.  In that model, when a user clicks a button (or hyperlink) on a web page or makes a selection in a drop-down control this invariably results in a post back to the server which responds to the client-side action, and then completely refreshes the page.

In the previous paragraph I wrote “until recently”, and that is because for the 2 or 3 years, JavaScript has become a significant part of my job.

 
May 14 2015

React: 3 - Reactive Updates

imageOne of Reacts strengths is that it is NOT an MVC or MVVM framework.  These frameworks can get quite slow when there are a lot of complex updates being made to the underlying models.  The frameworks are continuously monitoring for changes and one change to one component can lead to hundreds or thousands of changes to other objects, and the frameworks are continuously updating the DOM to visualize the changes.

Apr 8 2015

DNN Loves MVC: 1 - Introduction

DNN_Loves_MVC_LogoLast summer DNN Corp announced their intention to support MVC in future versions of the eponymous DNN Platform. 

Last week Joe Brinkman announced that the initial fruits of those labours was now available in a CTP of DNN 7.5.  The support introduced in 7.5 will allow developers to build their DNN modules using ASP.NET MVC version 5.1.1 or later. 

Mar 28 2015

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Categories

Tags