You are here

Blogs

Using C# 7 Local Function

A handy new feature introduced with C# 7 is Local Functions. As an example, in the LINQ query below, the select method is bit hard to read and can be simplified using a helper function.

void Main()

{

    AccountSet

Grouping Data with MoreLINQ Batch Extension Method

Being able to group data into batches can be quite useful and often done for reporting purposes, but I found it handy to group a series of multiple choice questions and answers for displaying a given tester. In this case, it was for a quiz that asked the capital of a given state with four possible answers provided for each question (see Figure 2). The data was in a SQL Server database table, but it could have been retrieved via a service or a text file.

CRM 2016: Fixing the Activities Subgrid

One problem that users have been facing since CRM 2011 is the discrepancy between what they see in the Activity Associated View for a record and an Activities subgrid included on the form. Someone may log a Phone Call with an Account or Contact as a recipient, but reference a Case in the Regarding field. In this instance, they’ll be able to find it in the Activity Associated View:

 

Using a Variable for a File Path in QlikSense

One of the things I typically do when working with a load script in QlikView is to assign a variable to the file path to my QVD files. That way, if the path changes, I only have to update it in one place instead of multiple places throughout the script. It usually looks something like this:

Simple Cookie Management in ASP.NET

Cookies are one of the many options available for state management in ASP.NET. A cookie is a small file on a client file-system that can be stored or retrieved from a browser session. These can be used for many things, but frequently are used to maintain a user session after the browser has closed – this comes into play with those “Remember Me?” checkboxes on log-in screens. When a user checks the box, they are usually consenting to have a cookie placed on their system.

Pages