.net

Multiple Sort For Collection Using LINQ

There are quite a lot of instance where you need to do a primary sort and you need a secondary sort on the same collection and sometimes even multiple sort. With LINQ we can achieve it pretty straight forward. Let us assume the situation here. We have a list of employees and we need the output to be sorted […]

Unleashing ASP.net Calendar Control

Download Sample CalendarDemo.zip (171.18 kb) Introduction Calendar control is as important as a normal text box control in any application. Most of any application which needs data entry will definitely need a calendar control at some part. ASP.net has a very good calendar control which we often ignore without exploring how far it can be […]

Guide: Write Your Own Syntax Highlighter

Download (80.22 kb) your sample here Syntax Highlighter has become the trivial part of every programmers life. Since “Oxford English Dictionary” which was published in the year 1985, we are addicted to these editors. In this post, I will walk you through a very simple and basic syntax highlighter application. Our first goal is define […]

Workaround For Non Serializable Types

There are many a situations you would have come across when you want to XML serialize an object but since the type is a non – serializable you can’t do it, and you could have done a lot of code for getting the functionality done. There is a much simpler and easy way to get […]

Ping remote machines using .net

If you are looking for to ping a remote machine and you want to record the state along with status and return time, below example can help you.   private void Ping_Click(object sender, EventArgs e) { List domains = new List(); domains.Add(“www.bing.com”); domains.Add(“www.yahoo.com”); domains.Add(“jebarson.info”); foreach (string domain in domains) { Ping pinger = new Ping(); […]

Scroll to top