You create a Web Form that contains a button named btnCancel that enables users to exit the page. When users click this button, validation must not occur. During testing you learn that clicking the Cancel button does not enable users to exit the page. You need to ensure that users can always exit the page. What should you do? ()
第1题:
You create a Web site that you must copy from a development server to a testing server, along with all source files. You do not have terminal access to the testing server. You need to create the virtual directory. Then you must copy the Web site to the virtual directory on the testing server without precompiling the site. What should you do? ()
第2题:
You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following code segment.You need to ensure that the server control generates a new password and sends it by e-mail to the users e?mail address. Which two actions should you perform?()
第3题:
You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1. The membership data for the application is stored in a SQL Express database in the App_Data directory. You need to configure your application so that the membership data is stored in a local Microsoft SQL Server database. You add the following code segment to the Web.config file.
第4题:
NEW_FORM
OPEN_FORM
CALL_FORM
CLOSE_FORM
第5题:
A
B
C
D
第6题:
Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.
Add a DocumentViewer control to the design surface. The create a FixedDocument control.
第7题:
Add a SiteMapDataSource control to the Web Form and bind the TreeView control to it.
Add a SiteMapPath control to the Web Form and bind the TreeView control to it.
Embed the site map XML within the SiteMap node of a Web.sitemap file.
Embed the site map XML within the AppSettings node of a Web.config file.
Set the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.
Set the SkipLinkText property of the SiteMapPath control to Sales.
第8题:
Create a valid
Set the passwordFormat attribute of the configured membership provider to Encrypted.
Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to False.
Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to True.
第9题:
You create a Web Form. You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page. What are two possible ways to achieve this goal? ()
第10题:
You create a master page named Template.master. Template.master contains the following ContentPlaceHolder server controls.You also create 10 Web Forms. The Web Forms reference Template.master as their master page. Each Web Form has the following Content controls that correspond to the ContentPlaceHolder controls in Template.master.You need to configure the Web pages so that default content will be shown in the area2 ContentPlaceHolder control whenever a Web Form does not provide that content. What should you do? ()
第11题:
You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The application will generate an ID for the user based on the users full name. You need to implement this registration functionality. Which two actions should you perform?()
第12题:
Use System.Web.UI.TemplateControl to group the UI elements.
Use System.Web.UI.HtmlControls.HtmlControl to group the UI elements.
Use System.Web.UI.LiteralControl to group the UI elements.
Use System.Web.UI.WebControls.Literal to group the UI elements.
第13题:
Add the ConnectionProvider attribute to OrdersPart.
Add the ConnectionProvider attribute to CustomerPart.
Add the ConnectionConsumer attribute to CustomerPart.
Add the ConnectionConsumer attribute to OrdersPart.
Add OrdersPart and CustomerPart to the WebParts directory.
Add OrdersPart and CustomerPart to the App_Code directory.
Declare the connections within a StaticConnections subtag of a WebPartZone class.
Declare the connections within a StaticConnections subtag of a WebPartManager class.
Define an interface specifying the methods and properties that are shared between the Web Parts.
第14题:
A
B
C
D
第15题:
Wizard1.RequireEmail = True
Wizard1.Email = user@address.com
Wizard1.MailDefinition.From = registration@mysite.com
SmtpMail.SmtpServer = mail.contoso.com
第16题:
Set the Enabled property of the validation controls on the Web Form to False.
Set the CausesValidation property of the btnCancel button to False.
Set the CausesValidation property of the btnCancel button to True.
Set the Visible property of the validation controls on the Web Form to False.