Archive / June, 2009

How to display ASP errors on Windows 2008 II7

By default ASP errors are not displayed on a Windows 2008, II7 server. The default error message displayed simply says: Server Error 500 – Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. This is for very good reason. Detailed error message can display sensitive […]

Setting WatermarkText in JavaScript

To set the Watermark Text of a TextBoxWatermarkExtender in the AJAX Control Toolkit, use the following code: var behavior = $find(‘<%= TextBoxWatermarkExtender1.ClientID %>’); behavior.clearText();behavior.set_Text(‘Hello World!’); behavior.initialize(); It took me a while to find that I needed to call the Initialize() function before the Watermark Text would get updated. Update September 25, 2012 It appears that […]