Total Pageviews

8/29/2014

Localization with ASP.NET MVC Model Metadata

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
1.    Add Resource.resx (For English ) and Resource.de.resx (For German)
--> 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.  
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. 

75 comments:

Unknown said...

This information was o helpful.
Web designing training in chennai

raphael said...

Wow excellent article. This will be more benefit for the asp.net beginners. and please keep update like this information.

digital marketing training Chennai

kathickanitha55 said...

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

Unknown said...

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

henris said...

Really nice and i got some valid information. Thank you for that and please keep update like this information.

Web Designing Training in Chennai

kanmani karthick said...

All of these tips are great, that’s very interesting.Thanks for sharing that valuable information.


Oracle SQL Training in Chennai

henris said...

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

Maani kamili said...

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

Unknown said...

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

Unknown said...

Really nice and i got some valid information.
J2EE training in chennai

http://essay-writing.company/ said...

My husband is a programer and he will explaint to me the things that I don't understand.

custom writing said...

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.

introduction chapter said...

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.

for ict 99 said...

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

Unknown said...

Nice post. Very interesting to read. Thank you for Sharing.
erp in chennai

Brave Technologies said...

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

Unknown said...

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

ASO Services said...

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.

Unknown said...

very interesting and most amazing post and giving details to be help me thanks
Candid photographers in jaipur

Sasha said...

Escort service in jaipur

good knowledge for your post thanks

vishnu said...

Thank you for sharing this information

DOT NET Course in Chennai | DOT NET Training in Chennai

Deepika said...

Great article, really very helpful content you made. Thank you, keep sharing.

Digital Transformation Services | Austere Technologies

Deepika said...

This blog is helpful, keep sharing. Thank you.

cloud Services | Austere Technologies

Deepika said...

Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.


Best Software Company | Austere Technologies

Deepika said...

wow...nice blog, very helpful information. Thanks for sharing.

IOT SERVICES | INTERNET OF THINGS | Austere Technologies

Unknown said...

Really great blog, it's very helpful and has great knowledgeable information. Thanks for sharing.

Software Security Services | Austere Technologies

Deepika said...

VERY INFORMATIVE BLOG. KEEP SHARING SUCH A GOOD ARTICLES.

Mobility Services | Austere Technologies

Deepika said...

This is really great informative blog. Keep sharing.

Best Quality Managment Services | Austere Technologies

Unknown said...

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

Deepika said...

Wow...What an excellent informative blog, really helpful. Thank you.

Best Commerce College| Avinash college of commerce

Kamal said...

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

Deepika said...

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

Unknown said...

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

ajay said...

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

Deepika said...

VERY INFORMATIVE BLOG. THANK YOU.

Best junior college in Hyderabad | Avinash College of commerce

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Block Chain Services

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best System Integration Services

sandy said...

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

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Finance Training in Hyderabad

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best company secretary course

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Chartered Accountancy

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Chartered Accountancy

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Cost And Management Accountancy (CMA)

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Certified Public Accountant

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Certified Financial Analyst

sandy said...

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

sandy said...

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

Avinash College Of Commerce said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Association Of Chartered Certified Accountants

Avinash College Of Commerce said...

Hi Thanks for the nice information its very useful to read your blog. We provide Software Development Services

Avinash College Of Commerce said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Chartered Institute Of Management Accountants

sandy said...

Hi Thanks for the nice information its very useful to read your blog. We provide Software Development Services

Deepika said...

Good information.

B.com Integrated Courses | Avinash College of commerce

Massil said...

Hi Thanks for the nice information its very useful to read your blog. We provide best Find All Isfs Courses

Deepika said...

Excellent informative blog, keep for sharing.

Best System Integration services | Massil Technologies

Unknown said...

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


Deepika said...

Thanks for sharing a valuable information to us. Thanks for your blog.
CIMA training institute in Hyderabad | ISFS

Sherin infanta said...

Your blog was very interesting & easy to understand. Thank you so much sharing that valuable blog..... Duplicate Payment Audit
Continuous Monitoring
Duplicate Invoice Audit

Amy Wong said...

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.

nikitha josh said...

It’s really a Great Post .Looking for Some More Stuff
best aviation academy in Chennai
cabin crew training Chennai
airline academy in Chennai
airport ground staff training courses in Chennai
Aviation Academy in Chennai
air hostess training in Chennai
airport management courses in Chennai
ground staff training in Chennai

Vishal DurgaIT said...
This comment has been removed by the author.
Vishal DurgaIT said...
This comment has been removed by the author.
divi said...

This blog is having great information to sare with us. Thanks for publish this kind of blog.web design company in velachery

Alexmohom said...

Thanks for sharing is so amazing and helpful to us.
Buy Hydrocodone online

alez said...

Thanks a lot for sharing
Having good health is what most people out there wants but can not achieve. some people takes buy ibogaine online AND buy weed online to get it.

Unknown said...

medical care is what many people lack in the interior areas of the world. people face a lot of health issues everyday without solution. buy magic mushroom, Buy weed online, Buy heroin online

Julia Loi said...

Great post I must say and thanks for the information. Education is definitely a sticky subject. it is still among the leading topics of our time. I appreciate your post and looking for more.
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg
mobile phone repair in Fredericksburg

Unknown said...

medical care is what many people lack in the interior areas of the world. people face a lot of health issues everyday without solution.
buy LSD online
Buy moonrock online
Buy fantanyl patches online
buy cocaine online
Bolivian Cocaine
Colombian Cocaine
Heroin
Mexican Cocaine

Janu said...



I just wanted to let you know that the piece you shared with us is pretty unique and authentic. I am going to keep browsing this blog.



Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery


Unknown said...

buy weed online
Afghan Kush
AK-47
buy weed online
AK-47 dank vape
painkiller
cocaine
Amnesia Haze
buy weed online
Afghan Kush
AK-47
buy weed online
AK-47 dank vape
painkiller
cocaine
Amnesia Haze

Anonymous said...

Женские сумки из кожи тяжелая сумка – это эталон качества и стиля. При их созаднии употребляется итальянская кожа и детали, что гарантирует изделиям износостойкость. Кожа удивляет многообразием фактур и текстур: помимо гладких и шершавых представлены тканевые модели, с тиснением под игуану или рельефным принтом. Надежная кожа делает сумки удобными. За прикольное видение стиля ручается команда лучших дизайнеров, которая следит за современными модными тенденциями.

vijay said...

I must appreciate you for providing such a valuable content for us. This is one amazing piece of article. Helped a lot in increasing my knowledge.
Salesforce Training in Chennai

Salesforce Online Training in Chennai

Salesforce Training in Bangalore

Salesforce Training in Hyderabad

Salesforce training in ameerpet

Salesforce Training in Pune

Salesforce Online Training

Salesforce Training

Praneeth M said...

It's very useful blog post with inforamtive and insightful content and i had good experience with this information. We, at the CRS info solutions , help candidates in acquiring certificates, master interview questions, and prepare brilliant resumes. salesforce training in Chennai who are offering good certificaiton assistance. I would say salesforce training is a best way to get certified on crm.

Buy Weed Online said...

buy weed online
buy moonrock online
buy pain relief pills online
Buy Adderall Online
buy weed online
buy moon rocks online

Anonymous said...

Таинственные силы и всякого рода обстановки предсказания судьбы научно не описаны, при том различные люди в них верят. Таро гадание на будущее три карты бесплатно - это проверенный метод узнать судьбу с использованием всевозможных предметов и средств. Номенклатура вариантов, сориентированных на предположение будущего, отмечают как хиромантия.

Anonymous said...

Безграничный выбор строительных принадлежностей для коммунальной сферы. Далее представлены наиболее важные плюсы взаимодействия с данной фирмой. Воспользуйтесь максимальными преимуществами только лишь на сайте мусорные контейнеры уличные пластиковые купить.

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews