After updating to Firefox 3.6 on OSX I discovered many of the websites that use flash had the flash object offset by 1 pixel horizontally. Its a real pain hopefully it will be fixed soon. In the mean time I have discovered a temporary fix you can make to your HTML.
I wanted to integrate the JQuery UI Dialog with a ASP.NET project so I created a C# class to wrap the functionality and make it easy to configure
I have a website getting occasional database disconnections throwing the error - A network-related or instance-specific error occurred while establishing a connection to SQL Server. Its been difficult locating the cause of the error as there appears to be nothing wrong. I have the same code running multiple websites and only one of the sites is plagued by the error so I figure it must be some configuration problem either with IIS or the MS SQL database.
I was surprised to find that DotNetPanel hosting control panel had basically shutdown for business. I have been using DNP control panel for around 3 years, originally starting with HostingController and then Helm and finally DNP. Over all DNP seemed the most robust and easy to use, but most importantly it worked well with servers spread over different networks. That's not to say I love every part of it there is certainly parts I would change given half a chance. So now, as it turns out, I can. DotNetPanel has been released on sourceforge as an open source project called WebsitePanel.
For a recent project I was working on I wanted to display some sports results on my local football club's website. The association publishes the results weekly on its website, we also wanted to post them on our website. It would be a waste of time to type them out each week so what can we do? First solution I thought of was HTML data scrapping the results and redisplaying them, better than using an iframe as the results were not in a format that would suit our site. It would be fairly straight forward using ASP.NET on the server but this website is a Blogger site with limited server side functionality.
It struck me the other day that it is so easy to use AJAX with ASP.NET it can make you lazy. I was working on a project where I had some radio boxes and based in the selection of the radio boxes another fields was displayed or hidden. I didn't want the page to post back so initially it though I'll just pop it in a AJAX UpdatePanel and write some code to show or hide the fields after the selection is made on the RadioButtonList.
I came across the situation the other day where I wanted to apply a CSS rule when two classes appeared in the same element. The Html generated was a div containing buttons. I wanted to apply a custom background to one of the items in the list. As you hover over each of the button elements JavaScript toggled the button-hover class. I wanted to have background image change on all of the list elements when button-hover was applied. The problem was I wanted to have a custom roll over images for each of the buttons.
Sorting items in a database using SQL is easy, simply order by whatever field you want that supports sorting, its easy to take that power for granted. But what if you already have your data in the form of a generic object collection which you want to sort. It turns out to be quite simple, all you need to do is create a collection of System.Collections.Generic.List and call the Sort() method.