CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Beta and Cancel Button

Print topic Send  topic

Author Message
Robert Rodgers
Posted: 01/29/2003, 5:53 PM

Using Beta 2.0.0.0 And ASP

Enable Validation = NO and my cancel button still goes through the
Validate() Sub. If this is normal I think it needs to be changed. I think
the code below should be written some thing like this.


Thanks.
rob

NEW::
================================================
Select Case PressedButton
Case "Delete1"
If NOT Delete1.OnClick OR NOT DeleteRow() Then
Redirect = ""
End If
Case "Cancel"
If NOT Cancel.OnClick() Then
Redirect = ""
End If
Case Else
Select Case PressedButton
Case "Insert1"
If NOT Insert1.OnClick() OR NOT InsertRow() Then
Redirect = ""
End If
Case "Update1"
If NOT Update1.OnClick() OR NOT UpdateRow() Then
Redirect = ""
End If
End Select
End Select


ORIGINAL:
================================================

If PressedButton = "Delete1" Then
If NOT Delete1.OnClick OR NOT DeleteRow() Then
Redirect = ""
End If
ElseIf Validate() Then
If PressedButton = "Insert1" Then
If NOT Insert1.OnClick() OR NOT InsertRow() Then
Redirect = ""
End If
ElseIf PressedButton = "Update1" Then
If NOT Update1.OnClick() OR NOT UpdateRow() Then
Redirect = ""
End If
ElseIf PressedButton = "Cancel" Then '''''' Why????
If NOT Cancel.OnClick() Then
Redirect = ""
End If
End If
End IF




   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.