Dealing with Multiple SUBMIT Buttons
Written by Eric Smith, Northstar Computer Systems LLC
In a previous tip, you learned how multiple submit buttons are handled by ASP. An alternative method suggested by Alexander Tsibushkin uses the same control name with different values, as shown here:
<form action=”submit.asp” method=”post”>
<input type=submit name=cmdSubmit value=”A”>
<input type=submit name=cmdSubmit value=”B”>
</form>
The value of Request(“cmdSubmit”) will be either A or B, depending on which button the user pressed.
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 10/1/1999
|