Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi.

I'm confused again. With this new validation controls from ASP.Net, is it not better to do your form validation on the Client-side with some script?

Can you accually do form validaton with a client-side script on ASP.Net controls, because if you do put an event on a ASP.Net control it will go to a VB runat = server routine? Hope you understand this question.

 

Cheers!!!

  • *Experts*
Posted
Actually the validation controls like RequiredFieldValidator attempt to do the client side validation first, then if the browser doesnt support JavaScript or cant do it then the validation goes server side. Put a RequiredFIeldValidation on your form and run it with a button. You will see that the error message pops up without any loading. (If you use IE, if you use any browser that doesnt support it it will be server side)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...