1
Answer

MVC

anand kumar

anand kumar

10y
678
1
Dear Sirs
 
                       I am a beginners  in asp.net mvc.I am try to retrieve a data from database using Entity framework.I am connected a database in the webconfig file  and create a database and table using entity framework and got result successfully but I do know how to retrieve a data from database pls help me for my queries and I am Waiting for your valuable comments
 
 
 
Regards
Annad Kumar.S 
Answers (1)
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;
    }