.NET Daily
Navigation
Featured

Sitecore

How to Publish Content to Social Media with Sitecore 8.x

Posted on September 2nd, 2017.

Managing social media content campaigns in a non-centralized way is no easy task. You have to walk through each social media page, add the desired content, select the targeted audience, add the tracking parameters to your site and finally publish. Although there are tools on the market which provides social media aggregation, there...

Featured

Web Development

ASP.NET Core. Best way to Keep Variables between Page Requests

Posted on August 19th, 2017.

In case you want to keep variables between page requests, ASP.NET CORE MVC and ASP.NET MVC provides a more elegant solution than the classic ViewState. It is called TempData. The usage of it is pretty straightforward. The example from below shows how I assign a variable to preserve the sort state of a column in a list table:...

Featured

SQL

Fast SQL Server Stored Procedure with Filtering, Sorting and Paging

Posted on July 11th, 2017.

Even though there are dozens of articles out there which shows you how to do a Microsoft SQL Server stored procedure with filtering, sorting and paging, the execution time greatly differs between each approach. So I started to do some research in order to find the best approach out there. And I believe I found it on Aaron Bertrand...

Featured

Microsoft ASP.NET

ASP.NET Core and EF: The instance of entity type ‘User’ cannot be tracked

Posted on July 9th, 2017.

This exception caused me to lose a bit more than expected before finding the right solution. That happened even though the ASP.NET team already documented this Entity Framework behavior very well here but, you know, who has time to read that much documentation… So, the full exception message is the following: InvalidOperationException:...

Featured

Sitecore

How to Use Adaptive Personalization with Sitecore

Posted on July 8th, 2017.

Offering an unique journey for the customers on your website is a must by today’s web standards. By using Sitecore, you have access to dozens of personalization capabilities that you can use to boost value per visit. If we talk about website personalization, the personas are always at the center of the stage. They are like the...

Featured

Sitecore

How to personalize based on search engine keywords with Sitecore

Posted on June 10th, 2017.

Offering an unique journey for the customers on your website is a must by today’s web standards. By using Sitecore, you have access to dozens of personalization capabilities that you can use on a properly developed solution. Below I’m going to show you how to personalize your homepage experience based on the search engine...

Featured

Sitecore

Sitecore Tracker.Current is not Initialized – During setup of a single Sitecore CD

Posted on May 22nd, 2017.

For configuring the productions instances for a Sitecore project, we usually follow this tutorial from Sitecore website for new CDs configurations. However, after configuring a particular single Sitecore CD deployment, the following exception has been encountered: System.InvalidOperationException: Tracker.Current is not initialized. The...

Featured

Windows OS

Turn On/Off Windows Services with PowerShell

Posted on May 11th, 2017.

In today’s .NET Web application development landscape, having up and running all the plethora of services needed for development could seriously affect your notebook performance. In my case, having up the services for SQL Server, MongoDB, IIS plus at least two browsers for testing accounts for approx. 7 GB of RAM and 30% of CPU...

Featured

Microsoft ASP.NET

ASP.NET Core – How to Get and Write values to HTML Inputs outside the scope of a Model

Posted on May 8th, 2017.

When you come from ASP.NET WebForms directly to ASP.NET Core, you’ll see that lots and lots of old practices for getting an adding data into web page forms have changed completely. For example, ASP.NET Core heavily rely on Models for managing form data while on ASP.NET WebForms you were totally in charge of managing that part....

Featured

Featured

Ready your Sitecore instance for Web Mastering team

Posted on April 27th, 2017.

Let’s assume that all the development for your new Sitecore project is complete. The next step now is to fill the website with content and prepare it for going live. The customer notified you that they want to use a dedicated team of webmasters which will be responsible for the entire content management process and asked you to...