This topic is locked
[SOLVED]

 form submit options

2/27/2012 10:16:15 PM
ASPRunnerPro General questions
G
georgeb author

i am building a wizard form set

form one is reportwizardstep1

it creates a report record, a directory that will contain the files uploaded in the next step, and emails the site owner the report record information.

the save redirects to reportwizardstep2

which is a file upload form that uploads user selected files to the directory created in step1

there are three buttons on the step2 form

  1. save and add another document
  2. save and add another Report
  3. back
    the issue is with the back button

    i need to return to a new form (reportwizardstep1edit_edit.asp)...i am trying to pass the editid to this form but the button code is in javascript and the value is stored in a vbscript session variable.
    how do i pass the variable in the javascript window.location?
    TIA

    GAB

Sergey Kornilov admin 2/28/2012

If I understand it right you need to pass data from the server side to Javascript button ClientAfter event. This can be done.
Check Example 1 at http://xlinesoft.com/asprunnerpro/docs/inserting_button.htm where we show how to pass parameters to ClientAfter event via result["txt"] variable.

G
georgeb author 2/28/2012



If I understand it right you need to pass data from the server side to Javascript button ClientAfter event. This can be done.
Check Example 1 at http://xlinesoft.com/asprunnerpro/docs/inserting_button.htm where we show how to pass parameters to ClientAfter event via result["txt"] variable.


thanks.