You are viewing a plain-jane printable version of http://CoverYourASP.com/Forms.asp.See how this was done
| |||
Implementing forms with ASPI think it's safe to say that every site needs a form - a contact or tell-a-friend form to send email, a Search form to search your database, or some sort of data entry form - probably all of these!As you'll soon see, the framework for all these forms is the same. Once you've written one, the rest are easy - it's just copy and paste! The steps to follow are:
Below is the code that I use to implement this framework. Every form uses some variation of this - some don't need any validation, others always display the form again. But each form starts with the code below.
Take a moment to glance over the code above, then I'll step you through this code, line-by-line, and examine what is happening. |