Asontu

Herman Scheele
.NET, C#, Sitecore developer and Data Science engineer @ theFactor.e.

profile for asontu at Stack Overflow, Q&A for professional and enthusiast programmers

Tech-blog about C#, Sitecore, T-SQL, Front-end, Python, Data Science and everything in between run by Herman Scheele

RSS Archive

Tag: C#

15 August 2021

Sorting Sitecore Forms exports

If you’ve ever exported form submissions as CSV file from Sitecore 9+ Forms, you might’ve noticed the order in which the columns are exported seems completely random. We can fix this by implementing our own IExportDataProvider.

tags: C# - Back-end - Sitecore


27 July 2021

Deconstruct ALL THE THINGS!

Quickly getting the matches and captured groups from a regex with a more eligant syntax? Deconstruct them!

tags: C# - Back-end


28 December 2020

Admin-panel to whitelist IP's for identity server

One of our clients wanted to be sure that only white-listed IP’s can log into Sitecore to manage their site. We solved this by utilizing IIS’s IP Address and Domain Restrictions feature on the Sitecore Identity Server. That way adding or removing an IP only restarts the app-pool for the Identity Server, not the Sitecore instance. Annoyingly this has meant that every so often I have to log into the production server just to add an IP address to IIS, until I made this admin-page that let’s anyone with the developer role in Sitecore do this without all the hassle.

tags: Sitecore - C# - Back-end


2 April 2020

A better way to do dynamic OrderBy() in C#

A common feature in various applications is to sort some collection by one of it’s properties, dependent on some input like the column clicked by the user. An implementation might take a string or enum for the column plus a bool or enum for ascending vs. descending.

tags: C# - Back-end