how to handle more than one submit buttons

  • Thread starter Sivaswami Jeganathan
  • Start date
S

Sivaswami Jeganathan

how to handle more than one submit button's
request in an
asp page.

ie........

multiple web pages are leading to a single asp
page atlast.
i want to distinguish between the web pages that
are
posting.
 
B

Bob Barrows [MVP]

Sivaswami said:
how to handle more than one submit button's
request in an
asp page.

ie........

multiple web pages are leading to a single asp
page atlast.
i want to distinguish between the web pages that
are
posting.

Several possibilities:
1. Use unique names for the submit buttons (or unique strings in the value
attribute of the submit button) and check the request.form collection for
that name and/or value
2. Use a hidden field to identify which form is sending the request
3. Use a querystring variable in the url put into each form's action
attribute
4. Not reliable, but you could check
Request.ServerVariables("http_referrer")

There's more, but this should get you started.
Bob Barrows
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top