C# & ASP.NET

@aspnet

Different data type in Web API response of the same method

Both XML and JSON in return result of Web API REST service method
 
0
Web API restful services are very flexible and they return different data format (JSON or XML) depending on accept type header value from your browser (or other client). However this is not always so precise so sometime you have to force return type. More on how to force return type on API method side itself you can find in this article ... read more

Generating HTML string in C#

The proper way to generate html string in C#
0
From time to time you get to the point where you have to generate some HTML in C# code. Of course, the easier way is to concatenate string and return that as a result of a method. This is not the most elegant solution and it is only fine for some short string. ... read more

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

JavaScript

read more

SQL/T-SQL

read more