Thursday 6 November 2008

ASP Buttons not firing events

How stupid did I feel today? Very, that's what.

In my perfectly working application, I add a new tab to the tabcontainer, and add some link buttons in it, but when running, the buttons would not work - they wouldn't run the code behind - I was completely perplexed as to why this was happening.

Eventually a colleague said to me "are you using the CausesValidation" - AH!!! Somewhere else on the application there is a requiredfieldvalidator, and that was telling the page that navigation couldn't take place, but the field was required - but in this case, it was allowed to happen. So, setting the property of CausesValidation = false, solved the problem.

Wednesday 5 November 2008

Sothink DHTML fails to install on DHTMLmenu.dll

I've had this problem twice now, and here's how I got round it to make it work under win xp sp2.

Start the installation, when it fails to register the file, click ignore. The installation will complete, but the program won't work.

Start the uninstall for it, again it will hang. Go into task manager, and kill the uninstall process. A temp file is produced, so kill that process also (it's the only one beginning with _tmp).

Do the install again, and it works!