468,273 Members | 2,166 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,273 developers. It's quick & easy.

Enable Validation on Client and server

Hello,

For security reasons, i'd like to permit validation on client and server
side.
But if JavaScript is desactivate on the client, the validation have to take
place on server side for catch page.isvalid property.

How to do that ?

by this way :

<asp:RequiredFieldValidator
EnableClientScript="True" -> Client Side
runat="server" --> Server Side ?
EnableViewState="false"
/>

Thanks for your help.
Nov 19 '05 #1
2 1267
Fabrice,

Yes, use the built in validators. They will validate client side if
possible. Then use If Page.IsValid serverside to make certain all input
passed validation before moving on.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Fabrice" <em******@spam-infonie.fr> wrote in message
news:u0**************@TK2MSFTNGP10.phx.gbl...
Hello,

For security reasons, i'd like to permit validation on client and server
side.
But if JavaScript is desactivate on the client, the validation have to
take place on server side for catch page.isvalid property.

How to do that ?

by this way :

<asp:RequiredFieldValidator
EnableClientScript="True" -> Client Side
runat="server" --> Server Side ?
EnableViewState="false"
/>

Thanks for your help.

Nov 19 '05 #2
thanks a lot.
"Fabrice" <em******@spam-infonie.fr> a écrit dans le message de news:
u0**************@TK2MSFTNGP10.phx.gbl...
Hello,

For security reasons, i'd like to permit validation on client and server
side.
But if JavaScript is desactivate on the client, the validation have to
take place on server side for catch page.isvalid property.

How to do that ?

by this way :

<asp:RequiredFieldValidator
EnableClientScript="True" -> Client Side
runat="server" --> Server Side ?
EnableViewState="false"
/>

Thanks for your help.

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Hernán Castelo | last post: by
6 posts views Thread by Stephen | last post: by
6 posts views Thread by serge calderara | last post: by
6 posts views Thread by Jon Paal | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.