Here are the code bits from the DAMTUG presentation I did on the 15th of July in Dublin.
Firstly the Defensive Programming code bits.
First one is how to encrypt your web.config online. That can be downloaded from here
The Virtual Earth/Bing Maps demos can be downloaded from here
Thanks to all who came and also those who provided feedback. I will be doing some code samples for XSS over the coming weeks based on the feedback from the talk.