How to display message if box is checked with wrong criteria. (1 Viewer)

selvsagt

Registered User.
Local time
Today, 05:42
Joined
Jun 29, 2006
Messages
99
Is there any way to do the following on a webform written in asp:


If the user has checked a box called "utg" or "utgRI" or "inng" or "inngSt", and registered value 1 or 2 or 3 in a field called "activity", then a box should appear that says: "Hold your horses, check your input!", when the user is saving.

I have a webpageform, actually it is a msaccess dap, but it takes asp coding, and most of the coding is written in ASP.


I guess this code must lie on the save button.

Any help is highly appreciated.
 

webmonkey

New member
Local time
Today, 04:42
Joined
Jan 12, 2007
Messages
7
If you want a popup box before submitting then Javascript is the way - because of the client/server interaction this must take place on the client side.

Alternatively you can submit the data, either with AJAX, or just as you would normally with ASP then check the values and display an error on the page following.
 

Users who are viewing this thread

Top Bottom