Can use standard validation controls in MVC Web application [Resolved]

Posted by muralikrishnasurap-12704 under ASP.NET MVC on 7/17/2014 | Points: 10 | Views : 466 | Status : [Member] | Replies : 2
Can use standard validation controls in MVC Web application
Example Required filed validation control etc.

Best Regards
Murali Krishna.S



Responses

Posted by: Sheonarayan on: 7/17/2014 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
No, ASP.NET Web Form (traditional ASP.NET) and ASP.NET MVC is entirely two different technologies. In ASP.NET, there is concept of server control like GridView, RequiredFieldValidator etc. So you can't use them in ASP.NET MVC.

Read this http://www.dotnetfunda.com/codes/show/6320/how-to-validate-the-input-property-in-aspnet-mvc to know how to validate required field in ASP.NET MVC.

You can also learn about Server side validation in asp.net mvc at http://www.dotnetfunda.com/articles/show/2603/aspnet-mvc-5-server-side-validationvisual-studio-2013-rc

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

muralikrishnasurap-12704, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: muralikrishnasurap-12704 on: 7/17/2014 [Member] Starter | Points: 25

Up
0
Down
Thanks Sir.

Best Regards
Murali Krishna.S

muralikrishnasurap-12704, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response