Click here to Skip to main content
15,899,937 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPage not working properly after file disposition Pin
milpo29-May-09 20:32
milpo29-May-09 20:32 
AnswerRe: Page not working properly after file disposition Pin
milpo29-May-09 21:03
milpo29-May-09 21:03 
Question'Page Init' approached twice in the master page Pin
shabya29-May-09 20:30
shabya29-May-09 20:30 
AnswerRe: 'Page Init' approached twice in the master page Pin
Manas Bhardwaj29-May-09 23:26
professionalManas Bhardwaj29-May-09 23:26 
GeneralRe: 'Page Init' approached twice in the master page Pin
shabya30-May-09 0:44
shabya30-May-09 0:44 
AnswerRe: 'Page Init' approached twice in the master page Pin
Ramesh Swaminathan30-May-09 0:00
Ramesh Swaminathan30-May-09 0:00 
GeneralRe: 'Page Init' approached twice in the master page Pin
shabya30-May-09 0:43
shabya30-May-09 0:43 
QuestionMultiLanguage web site Pin
cocoonwls29-May-09 19:37
cocoonwls29-May-09 19:37 
Hi all,

I have view of some example (globalization) to develop a multilingua web site. But still cant success on it.i have create a .resx file call rsc.zh-CHS.resx in floder App_GlobalResources. Then using the the code following to display selected language. And also use a dropdownlist to select a preferral language

private ResourceManager rm;
protected void Page_Load(object sender, EventArgs e)
{
CultureInfo ci;
if (!IsPostBack)
{
 Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
 rm = new ResourceManager("rsc", Assembly.Load("App_GlobalResources"));
 ci = Thread.CurrentThread.CurrentCulture;
 LoadData(ci);
}
else
{
 rm = new ResourceManager("rsc",Assembly.Load("App_GlobalResources"));
 ci = Thread.CurrentThread.CurrentCulture;
 LoadData(ci);
}
}

public void LoadData(CultureInfo ci)
{
 lblCNName.Text = rm.GetString("lblCNName", ci);
 lblENName.Text = rm.GetString("lblENName", ci);
}


I get a error in LoadData() and said that:

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "rsc.resources" was correctly embedded or linked into assembly "App_GlobalResources.qb8c2ydr" at compile time, or that all the satellite assemblies required are loadable and fully signed.


Note: my example come from http://ashrafur.wordpress.com/2008/01/17/multi-language-supported-web-site-in-aspnet/[^]


any tips are welcome.

regards
cocoonwls
AnswerRe: MultiLanguage web site Pin
Parwej Ahamad29-May-09 20:17
professionalParwej Ahamad29-May-09 20:17 
GeneralRe: MultiLanguage web site Pin
cocoonwls1-Jun-09 20:07
cocoonwls1-Jun-09 20:07 
Questiondate time picker Pin
jainiraj29-May-09 19:15
jainiraj29-May-09 19:15 
AnswerRe: date time picker Pin
Baran M29-May-09 19:22
Baran M29-May-09 19:22 
QuestionAbout Datagrid [modified] Pin
mahichandu29-May-09 10:16
mahichandu29-May-09 10:16 
AnswerRe: About Datagrid Pin
Bassam Saoud29-May-09 11:08
Bassam Saoud29-May-09 11:08 
AnswerRe: About Datagrid Pin
adatapost29-May-09 15:48
adatapost29-May-09 15:48 
AnswerRe: About Datagrid Pin
Baran M29-May-09 19:15
Baran M29-May-09 19:15 
QuestionRe: About Datagrid [modified] Pin
mahichandu1-Jun-09 4:18
mahichandu1-Jun-09 4:18 
QuestionPull nested xml values into Datagrid Pin
ErikKoz29-May-09 8:59
ErikKoz29-May-09 8:59 
AnswerRe: Pull nested xml values into Datagrid Pin
Bassam Saoud29-May-09 11:15
Bassam Saoud29-May-09 11:15 
AnswerRe: Pull nested xml values into Datagrid Pin
adatapost29-May-09 15:45
adatapost29-May-09 15:45 
QuestionFiltering a GridView on a column using checkboxes Pin
Member 540677929-May-09 6:39
Member 540677929-May-09 6:39 
AnswerRe: Filtering a GridView on a column using checkboxes Pin
thowra29-May-09 7:07
thowra29-May-09 7:07 
Questionchangepassword Pin
jainiraj29-May-09 4:40
jainiraj29-May-09 4:40 
AnswerRe: changepassword Pin
Ramesh Swaminathan29-May-09 6:59
Ramesh Swaminathan29-May-09 6:59 
AnswerRe: changepassword Pin
Baran M29-May-09 7:35
Baran M29-May-09 7:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.