Universal Form Validator ASP Support Product Page

How to check for server side validation before record insert?

Asked 21 Feb 2010 15:45:40
1
has this question
21 Feb 2010 15:45:40 Jerry Smith posted:
Hi there

i tried disabling javascript and the server side is working Ok, although I get 2 error messages on one field if there were more than one validations, but ok... most of the people will have JS enabled and the rest are hackers, I have not seen any customer up to this day who was legitimate user and disabled javascipt. You can not work with JS this days...

Anyway, all is ok, but how do I integrate insert code with the server side part of your functions. What is now:

If (CStr(Request("MM_insert")) = "Registration") Then


is obviously not enough as the MM_insert is Registration EVERY TIME the form get's posted.

What I think I need is some function that get's server side state so I can write something like that:

If (CStr(Request("MM_insert")) = "Registration") and FormValidator=true then do insert...


I was looking through your ASP but the code is so long and I don't understand everything, so I rather ask here, I guess someone else will be interested also. I check documentation about it and didn't find a clue.

I think there must be some ASP check if the validation is OK that I can use it.

Thanx for the answer

Jernej
Edited by - Jerry Smith on 21 Feb 2010  15:46:44

Replies

Replied 21 Feb 2010 16:20:16
21 Feb 2010 16:20:16 Jerry Smith replied:
Is it safe to use


If (CStr(Request("MM_insert")) = "Registration") and dmxval1.Validate Then



To use the dmxval1.Validate in the insert server behavior condition?
Replied 23 Feb 2010 09:51:43
23 Feb 2010 09:51:43 Jerry Smith replied:
Hm, the result of the dmxval1.Validate is true the first time and not true the second time I call it, I'd really like to know if this is the best methor to check if server side part is validated.

Reply to this topic