The three examples demonstrate changing the action of a form, using
response.redirect, using server.transfer and using a page reference; all
including the issues of passing values form one page to another.
What if several pages call page 2 for validation? Should I send the name of
the calling page in the call somehow or is there an automatic method to
determine the calling page?
What if several pages call page 2 for validation? Should I send the
name of the calling page in the call somehow or is there an automatic
method to determine the calling page?
You can use the server variable HTTP_REFERER to find out which page called
the current page.
However, if you're creating a page just for validation it may make more
sense to create a validation class rather than a validation page. With a
validation class, you can call it within a page's validation event without
redirecting.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.