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...
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...
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...
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...
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.
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.
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.
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.
Time and time I have been asked the question, how much does a website cost and most of the time the response I got from them would be, "Wow, that's a bit too expensive, etc". Well, the truth is, since the .COM bubble era, web design industry has evolved and I have to say, one of the very important job as a web designer/ developer today is to educate clients the whole story of getting a professional website.