最新的Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development - 070-528免費考試真題
You have a Web site that uses a Microsoft ASP.NET membership provider. You create a Web page that contains the following code fragment.
<asp:LoginStatus id="LoginStatus1" runat="server">
You need to ensure that when a user logs out, the Web site redirects the user to the ComeBackSoon.aspx page that is located in the same folder.
Which code fragment should you add to the LoginStatus control?
<asp:LoginStatus id="LoginStatus1" runat="server">
You need to ensure that when a user logs out, the Web site redirects the user to the ComeBackSoon.aspx page that is located in the same folder.
Which code fragment should you add to the LoginStatus control?
正確答案: A
You are creating a Web application to process XML data. A section of the XML data is shown below.
<?xml version="1.0" encoding="utf-8" ?>
<Books>
<Book Price="9.99" NumPages="200" QtyAvailable="15" >
<Author>Fred</Author>
<Title>Fred's Book</Title>
</Book>
<Book Price="19.99" QtyAvailable="5" NumPages="400" >
<Author>Bob</Author>
<Title>Bob's Book</Title>
</Book>
</Books>
You are using an XmlReader object named reader to parse each element in the XML data.
You need to retrieve the QtyAvailable attribute for each book.
Which code segment should you use?
<?xml version="1.0" encoding="utf-8" ?>
<Books>
<Book Price="9.99" NumPages="200" QtyAvailable="15" >
<Author>Fred</Author>
<Title>Fred's Book</Title>
</Book>
<Book Price="19.99" QtyAvailable="5" NumPages="400" >
<Author>Bob</Author>
<Title>Bob's Book</Title>
</Book>
</Books>
You are using an XmlReader object named reader to parse each element in the XML data.
You need to retrieve the QtyAvailable attribute for each book.
Which code segment should you use?
正確答案: D
You deploy your company's Internet Web site.
You need to deny anonymous access to the Web site, allowing only authenticated users.
Which code segment should you use?
You need to deny anonymous access to the Web site, allowing only authenticated users.
Which code segment should you use?
正確答案: C
Your Microsoft ASP.NET Web site is on a hosted server. You have only File Transfer Protocol (FTP) access to the hosted server.
You create a new version of the Web site.
You need to deploy the new version to the hosted server.
What should you do?
You create a new version of the Web site.
You need to deploy the new version to the hosted server.
What should you do?
正確答案: C
You create a Web application. The Web application enables users to change fields in their personal profiles. Some of the changes are not persisting in the database.
You need to raise a custom event to track each change that is made to a user profile so that you can locate the error.
Which event should you use?
You need to raise a custom event to track each change that is made to a user profile so that you can locate the error.
Which event should you use?
正確答案: C
You have a Microsoft ASP.NET Web site that connects to a Microsoft SQL Server database.
You configure the database to allow only trusted connections. The Web site uses Windows Authentication
to authenticate all users.
You create a new domain account named dbUser that has access to the database.
You need to ensure that the Web site can access the database without allowing each individual user to
access the database.
What should you do?
You configure the database to allow only trusted connections. The Web site uses Windows Authentication
to authenticate all users.
You create a new domain account named dbUser that has access to the database.
You need to ensure that the Web site can access the database without allowing each individual user to
access the database.
What should you do?
正確答案: B