C# & ASP.NET

@aspnet

Enumerable Tips & Tricks with String and Int

Useful things to do with Enumerable in a single line
0
System.Linq.Enumerable is a core of LINQ magic. Most of the functions we use in a daily basis for anything we write with sequence, but what is really interesting is that methods from this class can be used for some tricky operations on strings and numbers and make them one line instead of loops. ... read more

Extending WebForms Page class for registering stylesheet include

Extension method which enables registering stylesheet file reference
0
I recently started working on an Umbraco package for GoogleMap manipulation. Since initial version of package is planned only for Umbraco 6 I decided to use WebuserControl for creating a package custom datatype. It means that for one document type I might have multiple control instances on the page. ... read more

Detecting request from mobile device

Take control over what is and what is not mobile device for your web app
0
Microsoft made is easy to detect whether request to your web application is coming from mobile device or not by adding a property to Request class. Usage of this is Request.Browser.IsMobileDevice. This works pretty fine for most of mobile devices, but this property is based on list of mobile browsers which is configured in .NET framework itself. ... read more

JavaScript

read more

SQL/T-SQL

read more