you don't need to cut and paste the code.
if you have the form posting to another page, follow these steps:
On the action page, go to the bindings panel and click the plus button, select Form Data. Click the folder icon in the form data window and select your form page. This will add dynamic data bindings for the form to the forms action page.
Now on the action page, you can add the server behaviors using the form data bindings.