070-515 無料問題集「Microsoft TS: Web Applications Development with Microsoft .NET Framework 4」

You are developing an ASP.NET Web page. You add the following markup to the page.
<asp:FileUpload id="FileUpload1" runat="server" />
<asp:Button id="btnUpload" Text="Upload selected file"
OnClick="btnUpload_Click" runat="server" />
<asp:Label id="lblFeedback" runat="server" />
You add the following code segment to the code-behind. (Line numbers are included for reference only.)
01 protected void btnUpload_Click(object sender, EventArgs e)
02 {
03 if (...)
04 {
05 string saveName = Path.Combine(@"c:\uploadedfiles\",
FileUpload1.FileName);
06
07 lblFeedback.Text = "File successfully uploaded.";
08 }
09 else
10 {
11 lblFeedback.Text = "File upload failed.";
12 }
13 }
You need to save the uploaded file and display a message to the user that indicates that the upload either
succeeded or failed.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

正解:A、B 解答を投票する
You are implementing an ASP.NET MVC 2 Web application.
You create a shared user control named MenuBar.ascx that contains the application's menu.
You need to use the menu bar in all application views.
What should you do?

You are implementing an ASP. NET MVC 2 Web application.
You add a controller named CompanyController.
You need to modify the application to handle the URL path /company/info.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

正解:C、D 解答を投票する
You are implementing a read-only page that includes the following controls.
<asp:Button ID="btnRefresh" runat="server" Text="Button" /> <asp:GridView ID="gvCustomers" runat="server" EnableViewState="False" OnDataBinding="gvCustomers_DataBinding"></asp:GridView>
You disable view state to improve performance.
You need to ensure that the page is updated to display the latest data when the user clicks the refresh
button.
Which code segment should you use?

You are building an ASP.NET control.
The control displays data by using a table element with a class attribute value of Results.
The control should expose a client-side event named onrowselected that fires when a check box in a
table row is selected.
You need to implement this client-side event.
What should you do?

You are implementing an ASP.NET AJAX page that contains two div elements.
You need to ensure that the content of each div element can be refreshed individually, without requiring a
page refresh.
What should you do?

You are developing an ASP.NET web page. The page includes functionality to make a web request and to
display the responde in a specified HTML element.
You need to add a client-side function to write the response to the specified HTML element.Which function
should you add?

You are implementing an ASP.NET AJAX page. You add the following control to the page.
<asp:UpdatePanel ID="pnl1" runat="server" UpdateMode="Conditional"> <ContentTemplate> ... </ContentTemplate> </asp:UpdatePanel>
You need update the contents of the UpdatePanel without causing a full reload of the page.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

正解:A、D 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Which property of the Label control gets\sets the identifer for a server control that the Label control is associated with?

You are implementing an ASP.NET MVC 2 Web application.
The URL with path /Home/Details/{country} will return a page that provides information about the named
country.
You need to ensure that requests for this URL that contain an unrecognized country value will not be
processed by the Details action of HomeController.
What should you do?

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡