How to Sort and Filter Generic List of Object using LINQ

Read more about How to Sort and Filter Generic List of Object using LINQ article

One of the best things of using LINQ is how easy we could sort or filter objects with a line of code. Consider we have a generic list of object of Employees and we want to filter them with their age. Using LINQ, we don't have to connect to the data source and get the SQL to do the where query. We can just do something like this...

Making sure Lightbox still works in Ajax UpdatePanel

Read more about Making sure Lightbox still works in Ajax UpdatePanel article

I recently updated the homepage portfolio section with an Ajax filtering dropdown, allowing readers to filter my portfolio with different technologies and themes. However, that caused my old lightbox effect to lose ground somehow. After days of debugging, I found a way to deal with it, that is...

Setting Default Button for Textbox Upon Hitting Enter

Read more about Setting Default Button for Textbox Upon Hitting Enter article

This has to be pretty simple, but I never actually realised it. That is, when we have a textbox, and a button aside, and we want to enter text into the textbox and do a postback by hitting enter on our keyboard instead of hitting the button aside. This can easily be done by wrapping the controls inside a panel, and then set the defaultButton property to the button's id. Gee, I never knew that...

How to show DateTime as Time Left

Read more about How to show DateTime as Time Left article

I recently needed to show a datetime as amount of time left or past. This can be done by using TimeSpan, which you can get by subtracting one DateTime from another...

Using StringBuilder to improve performance

Read more about Using StringBuilder to improve performance article

Jorge pointed out the other day that when we do a lot of string concatenation, it is better to use StringBuilder instead of the String class (e.g. str += "something more"; ). This is because StringBuilder gives a better performance when in memory than the standard String class, which requires garbage collection to remove.

Wordpress, Safe Enough from Hackers?

Read more about Wordpress, Safe Enough from Hackers? article

I still remember the first time I started using Wordpress, that was not so long ago when the word 'blogging' started to appear on every media. Blogs have grown dramatically popular. Some blog for making pennies out of it, some blog for fun and variety reasons. Back in that time, there weren't many blogging platforms available, apart from those written as open source, such as Wordpress. It quickly became a hit year after year partly because of its simplicity of usage and free of charge.

Why Should Businesses Look into Search Engine Marketing

Read more about Why Should Businesses Look into Search Engine Marketing article

Search engine marketing is becoming one of the most important strategies for businesses these days. With research confirming that up to 80 percents of prospective web consumers use search engines or internet directories to find targeted content, search engine marketing is the most widely used method of attracting targeted visitors to a website.

How to connect ASP.NET application to use MySQL

Read more about How to connect ASP.NET application to use MySQL article

A very easy way to connect ASP.NET application to use MySQL database is to use the MySQL Net Connector. With just the following lines of code, you can easily hookup your ASP.NET application to any MySQL db.