This topic is locked

Events not working

1/26/2006 17:33:24
ASPRunnerPro General questions
J
JimSmiley author

I've added 2 events to my project anf they're not working properly.
Event 1 is a Global Event; Registration Page "After Successful Registration" I have a Page Jump to the _add.asp page, but I get the "Registration Succesful" "Go back to Login" page.
Code:

Sub AfterSuccessfulRegistration()

'** Redirect to another page ****

Reponse.Redirect "CCInfo_add.asp"
End Sub
Event 2 is a Table Event; Add Page "After record added" I have a Page Jump to a custom "Thank You" page, which gives an error message.
Code:

Sub AfterAdd()

'** Redirect to another page ****

Reponse.Redirect "thank_you.htm"
End Sub
What am I doing wrong?
Jim Smiley

Sergey Kornilov admin 1/26/2006

Jim
that was a syntax error in sample event code. Instead of Reponse use Response.

Sub AfterSuccessfulRegistration()

'********** Redirect to another page ************

Response.Redirect "CCInfo_add.asp"
End Sub


This will be fixed in the next ASPRunnerPro build.

J
JimSmiley author 1/27/2006

Sergey;
Made the changes you suggested and still get the same results.
Regards;

J Smiley

Sergey Kornilov admin 1/27/2006

Jim,
just checked both events and it worked.
What is the error mesage you getting with second event?

J
JimSmiley author 1/27/2006

Sergey;
Error message for the PageJump to my custom Thank You page after Table is updated is:
Microsoft OLE DB Provider for ODBC Drivers error '80040e2f'
[Microsoft][ODBC Microsoft Access Driver]Error in row
/ccinfo/CCInfo_add.asp, line 595
Regards;Jim S

Sergey Kornilov admin 1/28/2006

Jim,
this is an update error. It has nothing to do with events.
Please send me your files for investigation.