2
Answers

ASP

Pavan Bujji

Pavan Bujji

9y
267
1
I implemented Jquery Validation.Then click on submit button First it is validating after then get fired.but it is not validating i,i mean ididnt enter any data,....then get fired.it should not be happens .
Name              textbox
Paasword       textbox
                        submitt
but i have exception error
enter @p1 scalar variable like that..
plz help me..
 
Thank you,
Pavan. 
 
Answers (2)
0
Suresh M

Suresh M

NA 18.6k 1.5m 9y
write this code in new class file and you can call it any form
0
Priya M

Priya M

NA 38 4.1k 9y
I also write this code..
 
but how i will call this code on different form .
0
Suresh M

Suresh M

NA 18.6k 1.5m 9y
Regex pattern = new Regex(@"(?<!\d)\d{10}(?!\d)");

    if(pattern.isMatch(socialSecNumber))
    {
        //Do something
        return true;
    }
    else
    {
        return false;
    }
Next Recommended Forum