Why should you not go into the codebehind and what exactly makes this 'avoidance' so important? Or are you being lazy? That's the most common reason when someone wants to avoid the codebehind - they're simply lazy and that's right, I ain't afraid to say it

If the code above isn't working for you, you should tell us what exactly is happening. Come on karth, you've been on these forums long enough to know the drill. My guess would be that your quotes and double quotes are not mixing right, but only your details can help confirm it.