September 2010 - Posts

7
Comments

Why not to use HttpResponse.Close and HttpResponse.End by hajan

I’ve seen many times developers use HttpResponse.Close and HttpResponse.End when they want to end the request and send a response to the client. If you read the MSDN explanation about HttpResponse.Close Method , in Remarks you will see the following explanation...
8
Comments

Calculate Business Days using LINQ by hajan

In this blog post, I will show one simple way to get the total business days within given range of two dates. Question related to this topic was asked several times in many ASP.NET / .NET Communities, so I thought it would be very good to document it...
Filed under: , ,
7
Comments

Get Distinct values of an Array using LINQ by hajan

In this blog post, I will show how you can filter your array and remove all duplicate elements so that the end result will be array with distinct values. Moreover, the main idea is to do this without using any other (two or more) array(s) to make this...
Filed under: , ,
4
Comments

Using CodeRun browser-based IDE to create ASP.NET Web Applications by hajan

Today I'm in another town where I didn't get my laptop with me. Anyway, I've found a computer but I have nothing installed on it, in order to run some code snippets. However, I already knew about CodeRun , the web-browser IDE for web applications development...
Filed under: ,
5
Comments

Using params keyword – Methods with variable number of parameters by hajan

Have you ever come to a situation when you want to create C# method (or in any other language), but you are in doubt what number of parameters your method needs to have? I suppose you do! It’s certain that many of You have already used some collections...
Filed under: ,
6
Comments

Working with Code Snippets in VS.NET by hajan

INTRODUCTION Creating code snippets using VS.NET is very useful tip because it may help you when you need to write code repeatedly within your applications. For instance, we may use try catch finally block very often. Rather than writing the complete...
More Posts