From: | Roy M |
To: | Rick Strahl |
There's no correct button - both of them are 'correct' :-)
To detect which button was pressed you can check for Request.IsFormVar(btnSecond.UniqueId) to see if a button was pressed. IOW, the one handler can conditionally check which of the buttons was pressed.
+++ Rick ---
Rick ...Adding another button ... no problem.
What I don't understand is how to change the form post action to reflect the correct button
Is this something that will be handled with JavaScript? Just not sure how to make the form react to the appropriate button
Any advice ....
Thanks in advance
Just add another submit button.
+++ Rick ---
I have the need to put two buttons on a form to designate different actions ... little unclear as to how to do that.
My form as the following associated with the form
<form name="Form1" id="Form1" method="POST" action="saverecord.mcg?Table=client&ID=C00-00000001 " onSubmit="" onreset="">
and the following submit button
<td><input title="Save" type="submit" value="Save" class="SaveButton"/> </td>
When the button is clicked it performs the action recorded with the form action
How do I add another button that will call to a different function ( Such as cancel what I'm doing)
Thanks in Advance
Roy