This topic is locked
[SOLVED]

 form button code ?

3/12/2012 1:12:52 PM
ASPRunnerPro General questions
G
georgeb author

added a button to a form....how do i pass a vbscript session variable to the server in the button javascript?

TIA

George

Sergey Kornilov admin 3/13/2012

You can pass data from server side ASP code to Javascript ClientAfter event via result array. See first example at http://xlinesoft.com/asprunnerpro/docs/inserting_button.htm

G
georgeb author 3/14/2012

so, the file upload form has a field named document that holds the path and filename.

the user browses for a file selects the desired one and clicks save. the file is uploaded to the appropriate directory.

works great

however
second button on the form "add another report" redirects to the first form in the wizard.
if the user has selected another file to upload and then selects "Add another...." the file is not uploaded and the user is redirected to the first form.
what is the best way in asprunner to test for a field value being not null (or the len(rtrim(field.value))>0)

and firing the save of the form if true?
TIA

Georgeb

Sergey Kornilov admin 3/14/2012

I'm afraid I'm not getting the whole picture.
If you have a valid support contract post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.