<dfn id="w48us"></dfn><ul id="w48us"></ul>
  • <ul id="w48us"></ul>
  • <del id="w48us"></del>
    <ul id="w48us"></ul>
  • 微軟認(rèn)證考試練習(xí)題及答案

    時(shí)間:2024-08-18 10:39:19 微軟認(rèn)證 我要投稿

    2016年微軟認(rèn)證考試練習(xí)題及答案

      1.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

    2016年微軟認(rèn)證考試練習(xí)題及答案

      All the content pages in the application use a single master page. The master page uses a static navigation menu to browse the site.

      You need to ensure that the content pages can optionally replace the static navigation menu with their own menu controls.

      What should you do?

      A.

      Add the following code fragment to the master page

      Add the following code segment to the Page_Load event of the content page

      PlaceHolder placeHolder = Page.Master.FindControl("MenuPlaceHolder") as PlaceHolder;

      Menu menuControl = new Menu();

      placeHolder.Controls.Add(menuControl);

      B.

      Add the following code fragment to the master page

      Add the following code fragment to the content page

      C.

      Add the following code fragment to the master page

      Add the following code segment to the Page_Load event of the content page

      ContentPlaceHolder placeHolder = Page.Master.FindControl("MenuPlaceHolder") as ContentPlaceHolder;

      Menu menuControl = new Menu();

      placeHolder.Controls.Add(menuControl);

      D.

      Add the following code fragment to the master page

      Add the following code fragment to the content page

      Answer: B

      2.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

      You plan to add a custom parameter in the SqlDataSource control.

      You write the following code fragment.

      You write the following code segment to create a custom parameter class.

      public class DayParameter : Parameter { }

      You need to ensure that the custom parameter returns the current date and time.

      Which code segment should you add to the DayParameter class?

      A.

      protected DayParameter() : base("Value", TypeCode.DateTime, DateTime.Now.ToString()) {

      }

      B.

      protected override void LoadViewState(object savedState) {

      ((StateBag)savedState).Add("Value", DateTime.Now); }

      C.

      protected override object Evaluate(HttpContext context, Control control) { return DateTime.Now; }

      D.

      protected override Parameter Clone() {

      Parameter pm = new DayParameter(); pm.DefaultValue = DateTime.Now; return pm; }

      Answer: C

      3.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has an ASPX page named ErrorPage.aspx.

      You plan to manage the unhandled application exceptions.

      You need to perform the following tasks:

      Display the ErrorPage.aspx page Write the exceptioninformation in the Event log file.

      Which two actions should you perform? (Each correct answer presents part of the solution.

      Choose two.)

      A.

      Add the following code fragment to the Web.config file.

      B.

      Add the following code fragment to the Web.config file.

      C.

      Add the following code segment to the Global.asax file.

      void Application_Error(object sender, EventArgs e)

      {

      Exception exc = Server.GetLastError();

      //Write Exception details to event log

      }

      D.

      Add the following code segment to the ErrorPage.aspx file.

      void Page_Error(object sender, EventArgs e)

      {

      Exception exc = Server.GetLastError();

      //Write Exception details to event log

      Server.ClearError();

      }

      Answer: AC

      4.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

      The application contains two Web pages named OrderDetails.aspx and OrderError.htm.

      If the application throws unhandled errors in the OrderDetails.aspx Web page, a stack trace is displayed to remote users.

      You need to ensure that the OrderError.htm Web page is displayed for unhandled errors only in the OrderDetails.aspx Web page.

      What should you do?

      A.

      Set the Page attribute for the OrderDetails.aspx Web page in the following manner.

      Add the following section to the Web.config file.

      B.

      Set the Page attribute for the OrderDetails.aspx Web page in the following manner.

      Add the following section to the Web.config file.

      C.

      Set the Page attribute for the OrderDetails.aspx Web page in the following manner.

      Add the following section to the Web.config file.

      D.

      Set the Page attribute for the OrderDetails.aspx Web page in the following manner.

      Add the following section to the Web.config file.

      Answer: C

      Section: (none)

      Explanation/Reference:

      Debug

      Indicates whether the page should be compiled with debug symbols. true if the page should be compiled with debug symbols; otherwise, false. Because this setting affects performance, you should only set the attribute to true during development.

      ErrorPage

      Defines a target URL for redirection if an unhandled page exception occurs.

      5.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

      You write the following code fragment.

      You need to ensure that when you click the btnSubmit Button control, each Label control value is asynchronously updatable.

      Which code segment should you use?

      A.

      protected void btnSubmit_Click(object sender, EventArgs e) {

      Label1.Text = "Label1 updated value";

      Label2.Text = "Label2 updated value";

      Label3.Text = "Label3 updated value";

      }

      B.

      protected void btnSubmit_Click(object sender, EventArgs e) {

      Label1.Text = "Label1 updated value";

      Label2.Text = "Label2 updated value";

      ScriptManager1.RegisterDataItem(Label3, "Label3 updated value");

      }

      C.

      protected void btnSubmit_Click(object sender, EventArgs e) {

      ScriptManager1.RegisterDataItem(Label1, "Label1 updated value");

      ScriptManager1.RegisterDataItem(Label2, "Label2 updated value");

      Label3.Text = "Label3 updated value";

      }

      D.

      protected void btnSubmit_Click(object sender, EventArgs e) {

      Label1.Text = "Label1 updated value";

      Label2.Text = "Label2 updated value";

      ScriptManager1.RegisterAsyncPostBackControl(Label3); Label3.Text = "Label3 updated value";

      }

      Answer: B

      Section: (none)

      Explanation/Reference:

      Use the RegisterDataItem method to send data from the server to the client during asynchronous postbacks, regardless of whether the control receiving the data is inside an UpdatePanel control.

      Use RegisterAsyncPostBackControl for Registers a control as a trigger for asynchronous postbacks.

    【微軟認(rèn)證考試練習(xí)題及答案】相關(guān)文章:

    2017微軟認(rèn)證考試flash練習(xí)題及答案03-21

    微軟認(rèn)證考試練習(xí)題03-21

    2017微軟認(rèn)證考試flash習(xí)題及答案03-21

    微軟認(rèn)證考試試題及答案「經(jīng)典版」03-30

    微軟認(rèn)證考試最新認(rèn)證01-13

    2016微軟認(rèn)證考試企業(yè)技術(shù)練習(xí)題03-20

    2017微軟認(rèn)證考試復(fù)習(xí)題及答案03-21

    2016年微軟認(rèn)證考試試題及答案03-07

    微軟認(rèn)證經(jīng)典習(xí)題及答案201603-15

    主站蜘蛛池模板: 国产精品视频二区不卡| 99久久99这里只有免费的精品| 久久精品无码一区二区无码| 97精品在线播放| 久久精品欧美日韩精品| 久久精品国产精品亚洲艾草网美妙 | 亚洲精品无码专区久久同性男| 国产精品三级在线观看无码| 国产精品女同一区二区| 国产精品原创巨作av女教师| 日韩欧美一区二区三区中文精品 | 国内精品久久久久国产盗摄| 97久久综合精品久久久综合| 亚洲国产精品高清久久久| 国产综合精品蜜芽| 国产国产成人久久精品| 99精品在线播放| 国产精品视频白浆免费视频| 久久久久久亚洲Av无码精品专口| 无码精品人妻一区二区三区影院| 国产精品视频色视频| 久久精品国产一区二区三区日韩| 国产精品嫩草影院AV| 国产网红无码精品视频| 精品久久久噜噜噜久久久| 日韩精品久久无码中文字幕| 亚洲日韩精品射精日| 亚洲性日韩精品一区二区三区| 热久久国产欧美一区二区精品| 无码人妻精品一区二区在线视频 | 成人精品一区二区三区免费看| 国产伦精品一区二区三区女| 国产人成精品午夜在线观看| 精品国产品香蕉在线观看75| 国产精品怡红院永久免费| 精品九九人人做人人爱| 精品亚洲欧美高清不卡高清| 欧美精品国产一区二区| 99久久精品九九亚洲精品| 国产成人精品免高潮在线观看| 99re只有精品8中文|