Click to See Complete Forum and Search --> : CustomValidator Control


cusoxty
06-29-2004, 03:34 PM
Hello. I am trying to figure out how to create a server side script that calls for a message box to appear if data is not entered into my tale upon the submit button. Because this data is very important, it is imperative that we know if all records are entered, because there could be a case where it doesn't enter. Therefore, what sort of coding can i use to validate that a new row was added to the table ' accounttransfers'? I understand how to get the error box to appear, im just not sure how to create the CustomValidator.

PeOfEo
06-29-2004, 11:16 PM
How I do forms is I use java script to make sure all of the feilds are correctly filled out, just to be user friendly, and then just to be on the safe side I run a similar script at the server that will be used just incase the java script fails. This server side script is nothing more then some if statements that say fire this block of code only if the user has the whole form filled out, else give him this message.