News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;

<asp:DropDownList ID="ddlLanguage" runat="server" AutoPostBack="True" ClientIDMode="Static" OnSelectedIndexChanged="SelectedLanguageChanged">
<asp:ListItem Value="en">English</asp:ListItem>
<asp:ListItem Value="es">Spanish</asp:ListItem>
<asp:ListItem Value="fr">French</asp:ListItem>
<asp:ListItem Value="de">German</asp:ListItem>
</asp:DropDownList>

The site contains localized resources for all page content that must be translated into the language that is
selected by the user.
You need to add code to ensure that the page displays content in the selected language if the user selects a
language in the drop-down list.
Which code segment should you use?

  1. protected void SelectedLanguageChanged(object sender, EventArgs e) 
    {
     Page.UICulture = ddlLanguage.SelectedValue;
    }
    
  2. protected override void InitializeCulture()
    {
     Page.UICulture = Request.Form["ddlLanguage"];
    }
    
  3. protected void Page_Load(object sender, EventArgs e)
    {
     Page.Culture = Request.Form["ddlLanguage"];
    }
    
  4. protected override void InitializeCulture()
    {
     Page.Culture = ddlLanguage.SelectedValue;
    }
    
Answer: Answer is b
Further Reading:

Useful resources,, Culture and UI Culture for ASP.NET Web Page

comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;