ASP.NET MVC has default facility for DATA ANNOTATION to provide validation. If you want to set your validation message as localization means when culture change, your validation message text change as per culture. You can also change label text with the change of culture. Let’s see step by step.
Here, we set two culture conversion ENGLISH and GERMAN
Here, we set two culture conversion ENGLISH and GERMAN
1. Add Resource.resx (For English ) and Resource.de.resx (For German)
--> Project properties Folder and AddNewItem Add Resource.resx (For English)
--> Project properties Folder and AddNewItem Add Resource.resx (For English)
--> Same as Add Resource.de.resx (For German)
--> Make sure to change the Access Modifier to Public (default is Internal)
2. Install-Package ModelMetadataExtensions
3. In model file sets error message and label
-->ErrorMessageResourceType sets type created by build provider. I added WebApplication.Properties.
-->ErrorMessageResourceName sets from resource file
-->For display label sets label name from resource file.
-->ErrorMessageResourceName sets from resource file
-->For display label sets label name from resource file.
4. Sets Global.asax file for URL routing.
5. Sets controller like
6. When runs with English culture
7. When runs with German culture
Happy programing friends.
58 comments:
This information was o helpful.
Web designing training in chennai
Wow excellent article. This will be more benefit for the asp.net beginners. and please keep update like this information.
digital marketing training Chennai
I read this articles really awesome.You provided another one great article.The programming was very easily understand and more important coding are provided on this post and this is very valuable in my studies.
iOS Training in Chennai
Hai,
Nicely written post. I am just about to start a new blog and there could not have been a better guide than this one for some good pointers. I am looking forward to starting a successful blog after reading this incredibly useful post of yours. Waiting for more such posts like this.
Keep writing and sharing!
aamala
SEO Training in Chennai
Really nice and i got some valid information. Thank you for that and please keep update like this information.
Web Designing Training in Chennai
All of these tips are great, that’s very interesting.Thanks for sharing that valuable information.
Oracle SQL Training in Chennai
Wow amazing i saw the article with execution models you had posted. It was such informative. Really its a wonderful article. Thank you for sharing and please keep update like this type of article because i want to learn more relevant to this topic.
SQL DBA Training in Chennai
It is really a great and useful piece of info. I’m glad that you shared this helpful info with us. Please keep us informed like this. Thank you for sharing.
Digital marketing company in Chennai
nice and really helpful article to everyone... thanks for sharing
selenium training in chennai | selenium training institute in chennai | Android training in chennai | android training institute in chennai
Really nice and i got some valid information.
J2EE training in chennai
My husband is a programer and he will explaint to me the things that I don't understand.
This is an incredible article that allows you to learn more about programming Share it with my husband, he is going to be very useful in his work.
Very nice and detailed written this post. I behold a very clear, even taking into account the fact that I do not have extensive knowledge in this subject.
I have read your blog its very attractive and impressive. I like it your blog.
ASP.NET MVC Training in Chennai | ASP.NET MVC Training in Chennai
ASP.NET MVC Online Training | Online LINQ Training | ASP.NET Online Training
Nice post. Very interesting to read. Thank you for Sharing.
erp in chennai
Thank you for this valuable information. Get your business to the next level in simple steps. We provides lowest price of erp Software for our clients erp solution providers in Chennai
It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
Android Training in Chennai
Ios Training in Chennai
Thanks a lot for sharing this with all of us, I like it and we can communicate. Do you need buy app ratings and reviews. To boost app ranking and double app downloads now.
very interesting and most amazing post and giving details to be help me thanks
Candid photographers in jaipur
Escort service in jaipur
good knowledge for your post thanks
Thank you for sharing this information
DOT NET Course in Chennai | DOT NET Training in Chennai
Great article, really very helpful content you made. Thank you, keep sharing.
Digital Transformation Services | Austere Technologies
This blog is helpful, keep sharing. Thank you.
cloud Services | Austere Technologies
Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.
Best Software Company | Austere Technologies
wow...nice blog, very helpful information. Thanks for sharing.
IOT SERVICES | INTERNET OF THINGS | Austere Technologies
Really great blog, it's very helpful and has great knowledgeable information. Thanks for sharing.
Software Security Services | Austere Technologies
VERY INFORMATIVE BLOG. KEEP SHARING SUCH A GOOD ARTICLES.
Mobility Services | Austere Technologies
This is really great informative blog. Keep sharing.
Best Quality Managment Services | Austere Technologies
Looking really great article with useful content, thanks much for creating sharing here please do keep on sharing...
Best Online Software Training Institute | Asp.Net MVC Training
Wow...What an excellent informative blog, really helpful. Thank you.
Best Commerce College| Avinash college of commerce
Good enlightening article. A debt of gratitude is in order for sharing such pleasant article, keep on up dating such great articles.
Education | Article Submission sites | MBA Guide | Technology
Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.
Best Commerce College in Hyderabad | Avinash College of Commerce
This has much useful and interesting guidance for freshers who are looking to upgrade the skills with Dot Net. Thank you.
Dot Net Training in Chennai
Dot Net Course in Chennai
Nice post keep do posting The Info was too good, for more information regarding the technology Click
Amazon web Services Training
and more information
Devops training
Salesforce certification Training program
VERY INFORMATIVE BLOG. THANK YOU.
Best junior college in Hyderabad | Avinash College of commerce
Hi Thanks for the nice information its very useful to read your blog. We provide best Block Chain Services
Hi Thanks for the nice information its very useful to read your blog. We provide best System Integration Services
Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book Andaman holiday packages
Hi Thanks for the nice information its very useful to read your blog. We provide best Finance Training in Hyderabad
Hi Thanks for the nice information its very useful to read your blog. We provide best company secretary course
Hi Thanks for the nice information its very useful to read your blog. We provide best Chartered Accountancy
Hi Thanks for the nice information its very useful to read your blog. We provide best Chartered Accountancy
Hi Thanks for the nice information its very useful to read your blog. We provide best Cost And Management Accountancy (CMA)
Hi Thanks for the nice information its very useful to read your blog. We provide best Certified Public Accountant
Hi Thanks for the nice information its very useful to read your blog. We provide best Certified Financial Analyst
Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book ANDAMAN TOUR PACKAGE @24599
Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book BEST ANDAMAN HONEYMOON PACKAGE @5999
Hi Thanks for the nice information its very useful to read your blog. We provide best Association Of Chartered Certified Accountants
Hi Thanks for the nice information its very useful to read your blog. We provide Software Development Services
Hi Thanks for the nice information its very useful to read your blog. We provide best Chartered Institute Of Management Accountants
Hi Thanks for the nice information its very useful to read your blog. We provide Software Development Services
Good information.
B.com Integrated Courses | Avinash College of commerce
Hi Thanks for the nice information its very useful to read your blog. We provide best Find All Isfs Courses
Excellent informative blog, keep for sharing.
Best System Integration services | Massil Technologies
Hi...I am reading your post from the beginning, it was so interesting to read & thanks for sharing useful post. Warehouse Audit | CA Firms | Stock Audit
Thanks for sharing a valuable information to us. Thanks for your blog.
CIMA training institute in Hyderabad | ISFS
Your blog was very interesting & easy to understand. Thank you so much sharing that valuable blog..... Duplicate Payment Audit
Continuous Monitoring
Duplicate Invoice Audit
They advised me one site for working on the Internet class play free casino games I tried a couple of days until everything is fine.
Post a Comment