It has nothing to do with the server side code.
It looks like you have this line of code repeated:
<div id="form1_ProgressWrapper">
<div id="form1_ProgressWrapper">
that may be the issue.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.