You're absolutely right, I didn't test the code I posted
earlier, so it's completely rubbish. My apologies...
Here's the corrected, tested and working code:
private void Page_Load(object sender,
// Put user code to initialize the
Replace "MyNamespace" with the namespace of your