Microsoft TS: Web Applications Development with Microsoft .NET Framework 4 - 070-515무료 덤프문제 풀어보기
You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx. TestPage.aspx uses TestUserControl.ascx as shown in the following line of code.
<uc:TestUserControl ID="testControl" runat="server"/>
On TestUserControl.ascx, you need to add a read-only member named CityName to return the value "New
York".
You also must add code to TestPage.aspx to read this value.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
<uc:TestUserControl ID="testControl" runat="server"/>
On TestUserControl.ascx, you need to add a read-only member named CityName to return the value "New
York".
You also must add code to TestPage.aspx to read this value.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
정답: A,C
You are developing an ASP.NET Web service.
The following code segment implements the service. (Line numbers are included for reference only.)
01 [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
02 public class ProductService : System.Web.Services.WebService
03 {
04 [WebMethod]
05 public Product GetProduct(string name)
06 {
07
08 }
09
10 [WebMethod]
11 public Product GetProduct(int id)
12 {
13
14 }
15 }
You need to ensure that both GetProduct methods can be called from a Web client.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
The following code segment implements the service. (Line numbers are included for reference only.)
01 [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
02 public class ProductService : System.Web.Services.WebService
03 {
04 [WebMethod]
05 public Product GetProduct(string name)
06 {
07
08 }
09
10 [WebMethod]
11 public Product GetProduct(int id)
12 {
13
14 }
15 }
You need to ensure that both GetProduct methods can be called from a Web client.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
정답: A,C
You are implementing a new Dynamic Data Web site.
The Web site includes a Web page that has an ObjectDataSource control named ObjectDataSource1.
ObjectDataSource1 interacts with a Web service that exposes methods for listing and editing instances of a
class named Product.
You add a GridView control named GridView1 to the page, and you specify that GridView1 should use
ObjectDataSource1 as its data source.
You then configure GridView1 to auto-generate fields and to enable editing.
You need to add Dynamic Data behavior to GridView1.
You also must ensure that users can use GridView1 to update Product instances.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
The Web site includes a Web page that has an ObjectDataSource control named ObjectDataSource1.
ObjectDataSource1 interacts with a Web service that exposes methods for listing and editing instances of a
class named Product.
You add a GridView control named GridView1 to the page, and you specify that GridView1 should use
ObjectDataSource1 as its data source.
You then configure GridView1 to auto-generate fields and to enable editing.
You need to add Dynamic Data behavior to GridView1.
You also must ensure that users can use GridView1 to update Product instances.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
정답: B,C
You are developing an ASP.NET MVC 2 application. You create a login user control named login.ascx. You need to display Login.ascx in a view.
What should you do?
What should you do?
정답: C
You need to ensure that when the button is clicked, both update panels update the tim without generating a
postback.
What should you do?
postback.
What should you do?
정답: C
설명: (Fast2test 회원만 볼 수 있음)
You are developing an ASP.NET Web application.
The application is configured to use the membership and role providers.
You need to allow all users to perform an HTTP GET for application resources, but you must allow only the
user named Moderator to perform a POST operation.
Which configuration should you add to the web.config file?
The application is configured to use the membership and role providers.
You need to allow all users to perform an HTTP GET for application resources, but you must allow only the
user named Moderator to perform a POST operation.
Which configuration should you add to the web.config file?
정답: C
You are implementing an ASP.NET MVC 2 Web application that contains several folders.
The Views/Shared/DisplayTemplates folder contains a templated helper named Score.ascx that performs
custom formatting of integer values.
The Models folder contains a class named Player with the following definition.
public class Player
{ public String Name { get; set; } public int LastScore { get; set; } public int HighScore { get; set; }
}
You need to ensure that the custom formatting is applied to LastScore values when the
HtmlHelper.DisplayForModel method is called for any view in the application that has a model of type
Player.
What should you do?
The Views/Shared/DisplayTemplates folder contains a templated helper named Score.ascx that performs
custom formatting of integer values.
The Models folder contains a class named Player with the following definition.
public class Player
{ public String Name { get; set; } public int LastScore { get; set; } public int HighScore { get; set; }
}
You need to ensure that the custom formatting is applied to LastScore values when the
HtmlHelper.DisplayForModel method is called for any view in the application that has a model of type
Player.
What should you do?
정답: A
설명: (Fast2test 회원만 볼 수 있음)
You are deloping an ASP.NET Dynamic Data Web application.
The application uses entities from a global library named Entities.
The Application_Start event contains the following code segment:
DefaultModel.RegisterContect(typeof)( Entities.MyDBDataContext), new ContextConfiguration() { ScaffoldAllTables = false });
You need to ensure that the application shows the Order and Customer entities and hides all other entities.
What should you do?
The application uses entities from a global library named Entities.
The Application_Start event contains the following code segment:
DefaultModel.RegisterContect(typeof)( Entities.MyDBDataContext), new ContextConfiguration() { ScaffoldAllTables = false });
You need to ensure that the application shows the Order and Customer entities and hides all other entities.
What should you do?
정답: B
You are developing an ASP.NET templated server control.
You need to ensure that a new ID namespace is created within the page control hierarchy when the control
is added to a page.
Which interface should you implement on the control?
You need to ensure that a new ID namespace is created within the page control hierarchy when the control
is added to a page.
Which interface should you implement on the control?
정답: B
You are creating an ASP.NET web page that contains several FileUpload controls.
The page will be posted to the server after one or more image files are selected for upload.
You need to ensure that all uploaded files are saved to the server within one call to a single event handler.
What should you do?
The page will be posted to the server after one or more image files are selected for upload.
You need to ensure that all uploaded files are saved to the server within one call to a single event handler.
What should you do?
정답: A
You are developing an ASP.NET web page that includes a text box control.
The page includes a server-side method named ValidateValue.
You need to configure the page so that the text box value is validated by using the ValidateValue method.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
The page includes a server-side method named ValidateValue.
You need to configure the page so that the text box value is validated by using the ValidateValue method.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
정답: B,D
설명: (Fast2test 회원만 볼 수 있음)