This topic is locked

function of buttons

6/27/2007 4:00:49 PM
ASPRunnerPro General questions
C
chris author

What is the best way to modify the function of a button, for instance I want the standard save and allow for more entries and reset but I also want another button to save and go to another specific page.

Thanks,

Chris.

Sergey Kornilov admin 6/29/2007

Here is how this can be done

  1. In Visual Editor create a copy of the Save button

    Switch to HTML mode and modify new button label and ID
    <INPUT class=button id=submit2 type=submit value="Save and back to list" name=submit2>


2. Implement AfterEdit event:

if GetRequestForm("submit2")="Save and back to list" then

response.redirect "cars_list.asp"

end if


This is it.