Welcome to Hardcode Sign in | Join | Help

January 2009 - Posts

Having tested all the visual html editors for .NET, the best one is definitely this one.

You may find an unexplainable Timeout error happening after two usages of HttpWebRequest, even so the destination URL reponds in a timely fashion. If everything you have googled did not fix it, try to use Close on each HttpWebResponse.

The famous session state error:

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

can be fixed most of the time by using the well-known 3 steps, found here. If that *still* does not fix it, I found that the IIS7 setting runAllManagedModulesForAllRequests="true" on system.webServer / modules makes the error go away.

What pisses me off about ASP.NET's web controls is that they are databound even if they are invisible (that is, visible = false). This obviously sucks as you'll end up with unnecessary queries. A solution would be adding the controls at runtime depending on what tab page is visible, but that's a terrible workaround...

Get it from AppStore.

UpdatePanels are cool and very easy to use however the entire page is processed on the server, even if you need only a tiny piece of info. A better solution is to use WCF services + ASP.NET AJAX integration to retrieve only the information you want, check these samples for more info. It's surprisingly easy - give it a try!

Ok the Macbook Wheel is a nice joke but Nokia had launched not one but two mobile phones with few buttons and a wheel as the only input interface.

Here is the old Nokia 7280:

And its successor the Nokia 7380:

 

Reviews:

Remember the difficult task of dialing numbers? Well, typing an SMS on the 7280 is the ultimate nightmare. Scrolling through small letters laid out in the horizontal character bar is tiring and dreary. I took almost 5 minutes just to compose a 5-word SMS, a process that requires about 10 seconds on a phone with a normal keypad.