Suntower
Posts: 225
|
| Posted: 06/09/2006, 3:01 PM |
|
Hi,
Trying to rebuild the lost project from the published code which was done in 2.3.
OK, the following code worked fine in a login page in version 2.3, but when I try it in 3.0 I get an ASP error saying that the variable
Login_Button_DoLogin_OnClick
...is undeclared. Of course it has been earlier in Login_events.ASP
Any ideas?
Thanks In Advance,
---JC
Function Login_OnValidate() 'Login_OnValidate @4-7E39CF78
DIM Connection1
DIM CustomerID
'Custom Code @10-73254650
' -------------------------
' Write your own code here.
IF Login_Button_DoLogin_OnClick THEN
Set Connection1 = New clsDBConnection1
Connection1.Open
Session("GLO_CustomerID") = CCDLookUp("CustomerID","Contacts","ContactID="& Connection1.ToSQL(CCGetUserID(),ccsText), Connection1)
Session("GLO_UserID") = CCDLookUp("UserID","Contacts","ContactID="& Connection1.ToSQL(CCGetUserID(),ccsText), Connection1)
Session("GLO_ContactID") = CCDLookUp("ContactID","Contacts","ContactID="& Connection1.ToSQL(CCGetUserID(),ccsText), Connection1)
Session("GLO_ShipToID") = CCDLookUp("ShipToID","Contacts","ContactID="& Connection1.ToSQL(CCGetUserID(),ccsText), Connection1)
CustomerID = CCDLookUp("CustomerID","Contacts","ContactID="& Connection1.ToSQL(CCGetUserID(),ccsText), Connection1)
Connection1.Close
Set Connection1 = Nothing
END IF
' -------------------------
'End Custom Code
End Function 'Close Login_OnValidate @4-54C34B28
_________________
---On a campaign for more examples and better docs! |
 |
 |
Suntower
Posts: 225
|
| Posted: 06/09/2006, 3:10 PM |
|
PS: What makes me suspicious of something different in 3.0 is that the declaration for the function Login_OnValidate is different in 3.0
2.3
FUNCTION Login_OnValidate()
...but in 3.0
FUNCTION Login_OnValidate(Sender)
Any ideas?
---JC
PS: Is there a list of differences like this in the docs someplace?
_________________
---On a campaign for more examples and better docs! |
 |
 |
|