Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

HOW TO: Pass a Value from One Form to Another by Using Active Server Pages and FrontPage 2000


View products that this article applies to.

This article was previously published under Q308697

↑ Back to the top


Summary

This article explains how to pass a variable from one form to another in Microsoft FrontPage by using Active Server Pages (ASP).

Pass a Variable from One Form to Another

To pass a variable from one form to another by using ASP, follow these steps:
  1. Start FrontPage.
  2. Open two new pages, save one as Form1.asp, and then save the other as Form2.asp.
  3. On Form1.asp, point to Form on the Insert menu, and then click One-Line Text Box.
  4. Double-click the form, type Test in the Name box, and then click OK.
  5. Right-click the form, and then click Form Properties.
  6. In the Form Properties dialog box, click Send to Other, and then click Options.
  7. In the Action box, type Form2.asp.
  8. In the Method box, type Post, and then click OK.
  9. Click OK to exit Form Properties.
  10. On the File menu of Form1.asp, click Save.
  11. Switch to Form2.asp.
  12. Click the Normal tab on the bottom-left corner of the page (if you are not already in Normal view.)
  13. On the Insert menu, point to Form, and then click One-Line Text Box.
  14. Double-click the text box.
  15. In the Text Box Properties dialog box, type Test2 in the Name box.
  16. In the Value type box, type <% =Request.Form("Test") %>, and then click OK.
  17. On the File menu of Form2.asp, click Save.
  18. Switch to Form1.asp, and then click the Preview tab on the bottom of the page.
  19. Type some text in the text box, and then click Submit. The text that you submit in this step is displayed in the Form2.asp text box.

↑ Back to the top


References

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
175167� HOWTO: Store State in Active Server Pages Applications

↑ Back to the top


Keywords: KB308697, kbhowtomaster, kbhowto

↑ Back to the top

Article Info
Article ID : 308697
Revision : 2
Created on : 1/7/2006
Published on : 1/7/2006
Exists online : False
Views : 253