3
Answers

Java script and .Net

sHREYAS jOSHI

sHREYAS jOSHI

14y
2.1k
1
Actually i want to use Slandered validation control like required field validation in JavaScript shall i use it ?
Answers (3)
1
Crish

Crish

NA 3.7k 76.4k 14y
hi

you can use ASP.Net in built Required field validation for validation.

Also you can validate your fields using java script.

You can also use Custom validator for your custom validation using javascript

thanks

Accepted
2
sHREYAS jOSHI

sHREYAS jOSHI

NA 4 5.3k 14y
I m using ASP.Net in built Required field validation for validation but these validation are not properly working in Mozila, so i need to write a seperate javascript function in which i want to access the ASP.Net built in Required field validation.
SO how shoud i access them ?
2
Jaish Mathews

Jaish Mathews

NA 7.3k 1.2m 14y

One more thing. javascript supports RegularExpression. You can use that too for datavalidation. Syntax is something like
var re = new RegExp(<<RegularExpression>>);
if(<<ValuseToValidate>>.match(re)) {

}

Check below link
http://www.regular-expressions.info/javascriptexample.html