Client Side Java Script for CustomValidators

Posted by Danielaziz under ASP.NET on 7/18/2013 | Points: 10 | Views : 1152 | Status : [Member] | Replies : 4
I am working on a registration page of my Asp.Net website. When we use Server side Asp.net built-in validation controls, they work both on client side (by generating appropriate java script code) and offer server side protection too. So if somebody circumvent that java script, still the page has to be validated on the server. Currently i am using my own functions in CustomValidators to do the job but these only works on server side. I mean the equal java script is not automatically generated on my web form. Is it the default behavior of Asp.Net or i am missing anything? Do I have to write my client side java script myself?




Responses

Posted by: Phagu007 on: 7/18/2013 [Member] Starter | Points: 25

Up
0
Down
You can refer to this link for Java Script CustomValidators
[1] http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.aspx
[2] http://www.4guysfromrolla.com/articles/073102-1.aspx

Danielaziz, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Danielaziz on: 7/19/2013 [Member] Starter | Points: 25

Up
0
Down
Thank You, your provided sources helped me

Danielaziz, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Phagu007 on: 7/21/2013 [Member] Starter | Points: 25

Up
0
Down
Welcome . My motto is helping persons

Danielaziz, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 7/22/2013 [Member] Starter | Points: 25

Up
0
Down
HI
refer this link it might be useful to you
http://forums.asp.net/t/1745643.aspx/1

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Danielaziz, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response