March 2004 Entries

Badger Badger Badger Badger Mushroom Mushroom

I don't know why... http://badgerbadgerbadger.com/ http://www.weebls-stuff.com/toons/21/  

Secure your connection string in web.config

Thought I'd just put a quick post together on this one, since I am often asked about it. If you are worried about leaving names and passwords in web.config, but like the ease of it, then a very simple way of encrypting the values, putting them in the registry and then retrieving them through a simple change in syntax in web.config is detailed here: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q329290; it also includes a little command line utility to do the work for you.  Nice.  

Microsoft go Welsh, but still spell Colour without a u!

Microsoft must be reading my blog ;-). In British English or English? I wondered why the Welsh language isn't supported in .net.  Well it seems that that is changing for Windows at least.  The BBC: Microsoft works on native tongues, states "The Welsh language is to be introduced into Microsoft Windows", so presumably .net culture support will come with that too. No mention on whether the English-GB culture will be supported properly though, so that Color is spelt Colour in the Windows UI.  Maybe I should start a campaign?

asp.net without JavaScript

The UK government are issuing guidelines for all government web sites which includes the requirement that there must be an alternative to javascript in web pages.  So how does this affect asp.net?  You could modify the controls you use to add <NOSCRIPT> elements to the output, but this would be quite a large task.  A better approach would be to only use the server controls that do not need javascript for the postback. At first I thought this would be a major headache, but it turns out that only the following standard controls use javascript (taken from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconclientscriptinwebforms.asp): The LinkButton and HtmlButton...

Lightscribe - Burn an Image as well as your data onto your cd/dvd

This is a pretty neat technology from HP - no more messing about with sticky labels or cd-r pens, instead the  technology uses a chemical on one side of specially-coated discs. Once you have burnt the data, just flip it over and the image/label can be etched onto the disc using the same drive (though you will need a new Lightscribe compatible drive, available Summer 2004). See the details here: http://www.lightscribe.com/  

Default button in asp.net

One of the things that often crops up when designing asp.net web pages, and testing them in ie, is that there does not seem to be an easy way to set the default button.  This is the button that would be "clicked" when the user just presses enter on the form, and it's a feature of ie. Previously I have solved this through client-side javascript, but I recently came across a much neater solution in Mike Webs blog.  He has a good explanation of how it works so I won't go into it here, save to say that all you need to...

«March»
SunMonTueWedThuFriSat
29123456
78910111213
14151617181920
21222324252627
28293031123
45678910