• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 32. Writing Active Server Pages > Putting It All Together: A Simple ASP...

Putting It All Together: A Simple ASP Application

In the first part of this chapter, you read about VBScript and how you could use it to create client-side scripts. Then you learned quite a bit about Active Server Page applications and some of the built-in objects and components that support ASP development. Now it is time to join these two bodies of knowledge by looking at a short ASP application developed in VBScript. Suppose that your company is running a Web-based marketing campaign. You have sent mailers to your clients assigning a unique promotional identifier to each one, and inviting them to check out the promotion on your site. At your site, you will verify their contact information, ask them a few marketing questions, and then thank them for their participation. A back-end data source named promotion holds the current contact information and promotion IDs for each of your clients.

To begin the application, you need to prompt your client for his or her promotion ID. A simple XHTML form will suffice for this. What's unique in this case is that the action attribute of the <form> element will point to the ASP file promo1.asp, not at a CGI program. Listing 32.8 shows one possible way to code the form.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint