CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Message Box

Print topic Send  topic

Author Message
Marlon
Posted: 04/11/2005, 4:08 PM

How can I display an alert message if the value of field1 is greater than value of field2.

I need to display a message if the user try to buy (field1) more items than those in the inventary (field2), both values are displayed in the same form. If the value in field1 is greater than value of field2, then the message is displayed and the user cant save the order.
eiden


Posts: 34
Posted: 04/11/2005, 11:00 PM

You could add some custom code to your forms "On Validate" event:

  
with formname  
  
If .field1.value > .field2.value then  
.errors.addError("Your errormessage")  
end if  
  
end with  

You get the idea....
View profile  Send private message

Add new topic Subscribe to topic   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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