Skip to main content

Posts Tagged ‘.net’

Microsoftteams Image

Why Is It Important to Upgrade to Optimizely CMS 12, Commerce 14, and .NET 6?

A new year means new projects and marketing strategies, but how do you want to improve your key systems in 2023? We’ve put together this overview to help every Optimizely CMS/DXP user think about the precious aspects.   Released in November 2021, .NET 6 marks the latest update in the .NET Core product line. .NET 5 […]

Abstract colorful grid surrounded by glowing particles

Config-Per-Site in Optimizely Multi-Tenant Environments

Recently, I was given a task at work where we needed a multisite configuration. We all know that multi-environment is as easy as appsettings.<environment_name>.config. What about in multi-tenant environments? You can’t have appsettings.site1.config and appsettings.site2.config on your site! Well, not without a little extra work… Let me introduce AddKeyPerFile; this handy little function you set […]

Puzzle

The 1001st Piece in your 1000 Piece Puzzle: .NET Default Interface Functions

I recently worked with a client who wanted a reasonably large subsystem added to Optimizely that would add automated management to their content. While cutting the code for this, I found myself writing similar code across multiple classes. I had to write it that way: 1) The client was currently on CMS11 and didn’t have […]

Dependency injection in C# .NET

I’ve decided to write a tutorial on how to accomplish dependency injection in C# .NET, because the Microsoft documentation of dependency injection libraries is unfortunately way too sparse, and the Microsoft dependency injection tutorial is a little convoluted and complicated. Fortunately, C# .NET’s implementation of dependency injection is pretty straightforward. In my opinion, it’s way […]

APS.NET Core Web Application with React-Redux

Introduction React has gone viral among web developers. Compared to other mainstream JS libraries, thanks to JSX and virtual DOM, react has native advantages on DOM control. Redux is a handy way to manage state and React-Redux provides the glue between React and Redux. Going back to ASP.Net core, on VS 2017 Update 3, users […]

Microsoft AI at a Glance

Artificial intelligence (AI), the ability of a digital computer or computer-controlled robot to perform tasks commonly associated with intelligent beings including learning, language and perception, then help people solve problem better. It has been over several decades since human being research on AI, but the progress is very slow because of many facts, such as lack of data information, low performance […]

NuGet.org Launches New Site Redesign

NuGet.org, the go-to, repository for .NET developers to find and download packages, has just announced the launch of the site redesign they have been working on. There’s a link from the original site to use the preview site, or you can go directly to it by navigating to preview.nuget.org. According to the release announcement, the […]

Deep Space@1x.com

Site Clusters in Sitecore – Part 1

We often create multilingual websites using Sitecore’s powerful CMS. Sitecore has a great solution for multilingual content. Each item in the content tree can include a number of item versions, and each item version can be delivered in a different language, so translation of content is simple and straightforward. Well, not exactly. These item versions […]

4 Easy Steps to Custom Sections in web.config

In a recent project, I used the web.config file to store some configuration settings that could easily be modified without redeploying code. I used the standard appSettings in <configurations><appSettings><add key=”” value=”” /> .  This works great when you have a specific key name and value. For one specific setting, I needed a little more flexibility.  I created a custom […]

Getting Access Tokens for both SharePoint and Microsoft Graph

A few days ago, I was working on a project and needed to know if it was possible to access a user’s Exchange Online calendar using the same access token used to access list data in one of their SharePoint Online site collections. The Microsoft documentation is confusing due to the rapid pace of change […]

Getting Started with Sitecore Cookie-Based Personalization Rules

While working on my current project we ran into a requirement to personalize content based on a cookie that is generated on certain actions within the site. Sitecore out-of-the-box personalization rules do not contain a rule to check for cookies and personalize content based on the existence of a cookie or a value contained within it. […]

Ins and Outs of async and await

C# 5.0 introduced two new keywords: async and await. These keywords have a very powerful effect that can be used without fully understanding them. This is a double-edged sword. It’s great to have a language feature that doesn’t take much time to implement, but at the same time, if there isn’t at least a basic understanding, […]

Load More