Given a user control with a form containing validation can I validate entirely server side?
Posted
by JoshBaltzell
on Stack Overflow
See other posts from Stack Overflow
or by JoshBaltzell
Published on 2010-04-01T20:19:33Z
Indexed on
2010/04/01
20:23 UTC
Read the original article
Hit count: 139
We have an existing User Control that was built to dynamically generate a web form for an end user. This form includes required field validators, custom validators that use server side code and Regular Expression validatiors.
We now have a need to use all these validators to verify that all the needed data is entered when using a separate ordering process that cannot be validated in the same way, but has the same validation requirements before it is added to the database.
I would like to use this user control to validate the input by passing it all the values and checking the validation summary. The only way I know how to do this is to render it to a page on the client side and trigger the form submit.
Is there any way to populate and validate a web form entirely on the server side?
© Stack Overflow or respective owner