To specify the culture (language basis to load the text) follow the below steps:
Default Folder which it's get creat by vs.net
App_GlobalResources
1)Create a resource file (Contactus.resx) it is common for English. based on the langeuage needs to specify the culture text name like (Contactus.it.resx- for itally,Contactus.de.resx - for detuch)
how ever the label's specify
2)
void Loadtext()
{
lblfname.Text = Resources.Contactus.lblfname;
lblsurname.Text = Resources.Contactus.lblsname;
lblemail.Text = Resources.Contactus.lblemail;
lblGender.Text = Resources.Contactus.lblgender;
lblphone.Text = Resources.Contactus.lblphone;
}
3) Call the above method on your page load event. based on the culture it's read from the App_GlobalResources.
ஏஞ்சல்
என்னை பற்றி
Google reader
Categories
- .Net (9)
- .Net Crystal Report (1)
- .Net GridView (3)
- Articles (5)
- Log File .Net (1)
- Sharepoint (2)
- Sitefinity 3.7 (3)
- SQL (5)
- Technical Question and Ans (3)
- Validation (1)
- XML (2)
Thursday, May 21, 2009
Localization
When hearts listen
angel sing.If you seek an angel with an open heart...
You shall always find loved one