搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单项选择题】

You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.myStrings.resxmyStrings.enCA.resxmyString.en-US.resxmyStrings.fr-CA.resxmyStrings.es-MX.resx resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings. You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do? ()

A、A. Add the following configuration section to the Web.config file. <globalization culture="Auto" />

B、B. Set the directive for each page in your site as follows: <%@ Page UICulture="Auto" %>

C、C. Add the following code segment to the pages load event. lblName.Text = "{myStrings}Name" lblAddress.Text = "{myStrings}Address" lblEmail.Text = "{myStrings}Email" lblPhone.Text = "{myStrings}Phone"

D、D. Add the following code segment to the pages load event. lblName.Text = Resources.myStrings.Name lblAddress.Text = Resources.myStrings.Address lblEmail.Text = Resources.myStrings.Email lblPhone.Text = Resources.myStrings.Phone

更多“You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.myStrings.resxmyStrings.enCA.resxmyString.en-US.resxmyStrings.fr-CA.resxmyStrings.es-MX.resx resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings. You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do? ()”相关的问题
第1题

AWrite a batch file that uses aspnet_compiler.exe.  B、Write a batch file that uses InstallUtil.exe.  C、Write a batch file that uses Csc.exe.  D、Write a batch file that uses aspnet_wp.exe.  

点击查看答案
第2题

AWrite a batch file that uses aspnet_compiler.exe.  B、Write a batch file that uses InstallUtil.exe.  C、Write a batch file that uses Csc.exe.  D、Write a batch file that uses aspnet_wp.exe.  

点击查看答案
第3题

AWrite a batch file that uses aspnet_compiler.exe.  B、Write a batch file that uses InstallUtil.exe.  C、Write a batch file that uses Csc.exe.  D、Write a batch file that uses aspnet_wp.exe..  

点击查看答案
第4题

AWrite a batch file that uses aspnet_compiler.exe.  B、Write a batch file that uses InstallUtil.exe.  C、Write a batch file that uses Csc.exe.  D、Write a batch file that uses aspnet_wp.exe.  

点击查看答案
第5题

AWrite a batch file that uses aspnet_compiler.exe.  B、Write a batch file that uses InstallUtil.exe.  C、Write a batch file that uses Csc.exe.  D、Write a batch file that uses aspnet_wp.exe.  

点击查看答案
第6题

A、Include a data source identified as "WebPartConnection1" on the Web Form.  B、Include a Web Part identified as "customerPart" on the Web Form.  C、Include a Web Part identified as "ordersPart" on the Web Form.  D、Ensure that you declare an interface named "IOrdersPart".  E、Ensure that you declare an interface named "ICustomerPart".  F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.  

点击查看答案
第7题

A、Include a data source identified as "WebPartConnection1" on the Web Form.  B、Include a Web Part identified as "customerPart" on the Web Form.  C、Include a Web Part identified as "ordersPart" on the Web Form.  D、Ensure that you declare an interface named "IOrdersPart".  E、Ensure that you declare an interface named "ICustomerPart".  F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.  

点击查看答案
第9题

A、protected void Page_Error(object sender, EventArgs e) { lblResults.Text = e.ToString(); e=null;}  B、protected void Page_Error(object sender, EventArgs e) { lblResults.Text = Server.GetLastError().ToString(); Server.ClearError();}  C、protected void Page_Error(object sender, EventArgs e) Response.Write(e.ToString()); e=null;}  D、protected void Page_Error(object sender, EventArgs e) Response.Write(Server.GetLastError().ToString()); Server.ClearError();}  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服