PrepAway - Latest Free Exam Questions & Answers

Category: 70-528

Exam 70-528: TS: Microsoft .NET Framework 2.0 – Web-based Client Development

Which code segment should you use?

You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database. When the user clicks the Update button on the FormView control, the application must validate that the user has entered data in all of the fields. You need to ensure that the Web Form does not update if the user has not entered data in all of the fields. Which code segment should you use?

Which two code segments can you use to achieve this goal?

Your Web site processes book orders. One of the application methods contains the following code segment.

XmlDocument doc=newXmlDocument();
doc.LoadXml("<book><discount>10</discount>" +"
<title>Dictionary</title></book>");

You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal?
(Each correct answer presents a complete solution. Choose two.)

Which two actions should you perform?

You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users.
The Web application runs as CONTOSOASPNET. You deny anonymous access to the application in IIS. You add the following XML segment in the Web.config file.

<authentication mode="Windows"/>

You need to ensure that the application meets the following requirements:
1. It must impersonate the user when it writes data to the file
2. It must run as CONTOSOASPNET when a user does not access the file.
Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

Which two actions should you perform?

You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.

if (Page.User.Identity.Name != @"CONTOSOAdministrator") { Response.Redirect("login.aspx");}

You are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which code segment should you use?

You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives.

<%@ Master Language="C#" Src="~/article.master.cs" Inherits="article" %>

You need to create a content page that uses the master page as a template. In addition, you need to use a single master page for all devices that access the Web site.
Which code segment should you use?


Page 6 of 10« First...45678...Last »