Category: ASP.NET
-
How to setup Continuous Delivery right within Visual Studio 2017
I noticed the other day a new section on the Publish page in Visual Studio that allows developers to setup Continuous Delivery right within VS 2017: So I gave it a try and was honestly impressed at how easy it was to configure. Follow the screenshots below: Hit OK and wait for it to run.…
-
Configuring an ASP.NET web app with GSuite Gmail SMTP
This one took me several days to configure as it seems like Google has been constantly upgrading its security rules and so I found a lot of solutions online that no longer work. It’s possible this article may get outdated soon but at the time of writing, this is what made my “Contact Us” page…
-
Dependency Injection with Unity in an ASP.NET application
You will find lots of articles regarding Dependency Injection and why you should implement this design pattern. While this post is not about the “why” but the “how”, my two cents to “why do it” is below: Code becomes easily testable Components/layers are decoupled Overall promotes maintainability and good software practice This post will guide…
-
How to enable bundling and minification of CSS/JS in ASP.NET
This is a pretty neat way to bundle and optimize your CSS and Javascript files within your ASP.NET application. Install the nuget package Microsoft ASP.NET Web Optimization Framework Add a new class inside the App_Start folder > BundleConfig.cs Register/group your CSS and JS files the way you want it public class BundleConfig { public static…
-
How to Create an RSS Feed in EPiServer (ASP.NET MVC)
Thanks to Ted and a guy from CodeInside for your blogs which helped come up with this solution. Problem: Create an RSS feed for ASP.NET MVC Website with EPiServer Solution: We need three things 1. RssResult class 2. RssPage page type 3. RssPageController which creates the xml rss feed So let’s begin with the RssResult…
-
Using XForms in EPiServer 8 MVC
Ha, another milestone for me – I was able to create an XForm in EPiServer and hook it up to a block! First step I took: Create a Form block, which consists of the following properties: public class FormBlock { public virtual string Heading { get; set; } public virtual XForm Form { get; set;…