Please refrain from putting JavaScript in your code behind. If you want to bind a JavaScript event to an element, do it in JavaScript.
Keep JavaScript separate from your page (keep in an external file)
Keep CSS separate (no inline styles, keep in external file)
HTML pages should only have HTML with references to the other resources need (js and css files).
This will also make it easier to debug later on.
Also instead of using HTMLControls, you might find it easier to use the server controls instead.
stbuchok
Practically a Posting Shark
875 posts since May 2011
Reputation Points: 138
Solved Threads: 124
Skill Endorsements: 2