|
Forums » .NET » ASP.NET »
|
Multilingual website in asp.net |
Posted Date: 07 Aug 2012 Posted By:: Mek Member Level: Silver Member Rank: 2003 Points: 5
Responses:
2
|
Hello, Guys,
My question is simple i want create a website where the user can select the type of language. Please ref the link http://24x7onlineshopping.co.in/default.aspx i want to achieve this kind of selection. On selecting the language evey thing just changes the language type. I tried googling & found Resource files can be made for each language & found it lengthy but is it possible to acheive globalization using a access database, want i meant is "when the user changes the type of language the culture type should change corresponding to which the whole site's language" Please help me create a website with multi language using database. i hope my point is being delivered. Thanks in anticipation.
Regards,
Mek
|
Responses
|
#683504 Author: saravanakumar Member Level: Gold Member Rank: 197 Date: 07/Aug/2012 Rating:  Points: 4 | hi friend u use resources files for web pages.it is give more performance compared with getting the value from the database. please refer this,
this is for getting value from the resource file,
UserNameLabel.Text = myResourceManager.GetString("Username");
this is for set the culture information for the controls,
CultureInfo c = new CultureInfo("en-US"); System.Threading.Thread.CurrentThread.CurrentCulture = c; System.Threading.Thread.CurrentThread.CurrentUICulture = c;
all codes with in the language dropdown selected index event.
refer this site and u got more information how to do multilanguage website, http://www.codeproject.com/Articles/7998/Creating-multilingual-websites-Part-1
| #683508 Author: Mek Member Level: Silver Member Rank: 2003 Date: 07/Aug/2012 Rating:  Points: 1 | Thanks saravanakumar ,
i am developing a ecommerce website just like http://24x7onlineshopping.co.in/default.aspx, there are several controls like textbox, button, menu, header & these controls are called in usercontrols. How can i make resource files of usercontrols.wont it be a tiring job creating resource file for each language. Please visit the above link can u guess what method they are using.
Regards
|
|
| Post Reply |
|
|
|
You must Sign In to post a response.
|
|
|
|
 Follow us on Twitter: https://twitter.com/dotnetspider
|
|