单选题You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as shown in the following list.    Class name: Task   Namespace: DevControls   Assembly: TestServerControl.dll   Base class: System.Web.UI.WebControls.WebControl    You copy TestServerControl.dll to the Web site‟s Bin folder.  You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @ Register directive.  Which configuration should you add to the web.config file?()AappSettings add key=Dev:Task value=DevControls, DevControls.Task/ /appSettings  Bcompilation targetFramework=4.0 explicit=false assemblies add assembly=TestServerControl /      /assemblies /compilationCpages controls add assembly=TestServerControl namespace=DevControls tagPrefix=Dev/      /controls /pagesDpages tagMapping add tagType=System.Web.UI.WebControls.WebControl mappedTagType=DevControls /tagMapping /pages

单选题
You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as shown in the following list.    Class name: Task   Namespace: DevControls   Assembly: TestServerControl.dll   Base class: System.Web.UI.WebControls.WebControl    You copy TestServerControl.dll to the Web site‟s Bin folder.  You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @ Register directive.  Which configuration should you add to the web.config file?()
A

<appSettings> <add key=Dev:Task value=DevControls, DevControls.Task/> </appSettings>  

B

<compilation targetFramework=4.0 explicit=false> <assemblies> <add assembly=TestServerControl />      </assemblies> </compilation>

C

<pages> <controls> <add assembly=TestServerControl namespace=DevControls tagPrefix=Dev/>      </controls> </pages>

D

<pages> <tagMapping> <add tagType=System.Web.UI.WebControls.WebControl  mappedTagType=DevControls </tagMapping> </pages>  


参考解析

解析: 暂无解析

相关考题:

Your Web site uses custom Themes. Your Web site must support additional Themes based on the user‘s company name. The company name is set when a user logs on to the Web site. The company‘s Theme name is stored in a variable named ThemeName. You need to use this variable to dynamically set the Web site‘s Theme.What should you do?()A.B.C.D.

You are deploying an ASP.NET Web application to a remote server. You need to choose a deployment method that will ensure that all IIS settings, in addition to the Web content, will deploy to the remote server. Which deployment method should you choose?()A、the XCOPY command-line toolB、the Copy Web Site toolC、the Web Deployment toolD、the Publish Web Site utility

Your company has an Active Directory domain. All computers are members of the domain. Your networkcontains an internal Web site that uses Integrated Windows Authentication. From a computer that runs Windows 7, you attempt to connect to the Web site and are prompted for authentication. You verify that youruser account has permission to access the Web site. You need to ensure that you are automaticallyauthenticated when you connect to the Web site.  What should you do?()A、Create a complex password for your user account.B、Open Credential Manager and modify your credentials.C、Add the URL of the Web site to the Trusted sites zone.D、Add the URL of the Web site to the Local intranet zone.

You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts. Which tool should you use? ()A、the Microsoft .NET Framework Configuration toolB、the Code Access Security Policy toolC、the ASP.NET IIS Registration toolD、the Web Site Administration Tool

You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience. The custom user control uses two TextBox controls and two Button controls. You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site. Which two actions should you perform? ()A、Add the OnClick event handler for the Login button to the code used in the custom user control.B、Add the OnClick event handler for the Login button to the code used in the Web Form where the control is added.C、In the Page_Load method of the Web Form, add a code segment to set the visibility of the TextBox and Button controls where the control is added.D、In the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.

You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as shown in the following list.    Class name: Task   Namespace: DevControls   Assembly: TestServerControl.dll   Base class: System.Web.UI.WebControls.WebControl    You copy TestServerControl.dll to the Web site‟s Bin folder.  You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @ Register directive.  Which configuration should you add to the web.config file?()A、appSettings add key="Dev:Task" value="DevControls, DevControls.Task"/ /appSettings  B、compilation targetFramework="4.0" explicit="false" assemblies add assembly="TestServerControl" /      /assemblies /compilationC、pages controls add assembly="TestServerControl" namespace="DevControls" tagPrefix="Dev"/      /controls /pagesD、pages tagMapping add tagType="System.Web.UI.WebControls.WebControl" mappedTagType="DevControls /tagMapping /pages

You work as an ASP.NET Web Application Developer for SomeCompany.  The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. You create a Web page in the application. The Web page will get large sets of data from a data source.  You add a DataPager control to the page. You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control. What will you do?()A、Use NextPreviousPagerField.B、Use NumericPagerField.C、Use PreviousPagerField.D、Use NextPagerField.E、Use TemplatePagerField.

多选题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?()AConfigure the SqlMembershipProvider in the web.config file.BConfigure the SqlProfileProvider in the web.config file.CCreate an ASP.NET page that contains a default CreateUserWizard control to create a new user account.DCreate an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.

单选题You are implementing an ASP.NET Web site. The site uses a component that must be dynamically configured before it can be used within site pages. You create a static method named SiteHelper.Configure that configures the component. You need to add a code segment to the Global.asax file that invokes the SiteHelper.Configure method the first time, and only the first time, that any page in the site is requested. Which code segment should you use? ()Avoid Application_Start(object sender, EventArgs e) { SiteHelper.Configure(); }Bvoid Application_Init(object sender, EventArgs e) { SiteHelper.Configure(); }Cvoid Application_BeginRequest(object sender, EventArgs e) { SiteHelper.Configure(); }DObject lockObject = new Object(); void Application_BeginRequest(object sender, EventArgs e) { lock(lockObject()) { SiteHelper.Configure(); } }

单选题You are deploying an ASP.NET Web application to a remote server. You need to choose a deployment method that will ensure that all IIS settings, in addition to the Web content, will deploy to the remote server. Which deployment method should you choose?()Athe XCOPY command-line toolBthe Copy Web Site toolCthe Web Deployment toolDthe Publish Web Site utility

单选题You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts. Which tool should you use? ()Athe Microsoft .NET Framework Configuration toolBthe Code Access Security Policy toolCthe ASP.NET IIS Registration toolDthe Web Site Administration Tool

单选题You manage a server that runs Windows Server 2008. The server has the Web Server (IIS) role installed. The Web developer at your company creates a new Web site that runs an ASP.NET 3.0 Web application.  The ASP.NET Web application must run under a security context that is separate from any other ASP.NET application on the Web server.  You create a local user account and grant account rights and permissions to run the ASP.NET Web application.  You need to configure authentication for the new Web site to support the Web application. What should you do?()AConfigure the Windows Authentication setting to Enabled.BConfigure the Forms Authentication setting to Enabled by using all the default settings.CConfigure the ASP.NET State service to log on to the new local user account by using the Services console.DConfigure the ASP.NET Impersonation setting to Enabled. Edit the ASP.NET Impersonation setting by specifying the new local user account.

单选题You create a Web site that is for members only. The behavior of the Web site changes according to the role of the user. The Web site uses the ASP.NET Membership control for creation of user accounts. You need to find out whether a user is a member of a particular role. What should you do? ()APass the user names and passwords to Membership.ValidateUser.BPass the role names to User.IsInRole.CPass the role names to Roles.RoleExists.DPass the user names to Membership.GetUser.

单选题You work as the IT professional in an international company which is named Wiikigo. You are experiencedin implementing and administering a network operating system. You are specialized in deploying servers,configuring Windows Server 2008 Terminal services and network application services, and configuring aweb services infrastructure. You are in charge of a server that runs Windows Server 2008. The server hasthe Web Server (IIS) server role installed. The Web developer at your company creates a new Web sitethat runs an ASP.NET 3.0 Web application. The ASP.NET Web application must run under a securitycontext that is separate from any other ASP.NET application on the Web server. You create a local useraccount and grant account rights and permissions to run the ASP.NET Web application. Authentication forthe new Web site should be configured to support the Web application. What action should you perform?()AThe ASP.NET Impersonation setting should be configured to Enabled. Edit the ASP.NET Impersonation setting by specifying the new local user account.BThe Windows Authentication setting should be configured to Enabled.CThe Forms Authentication setting should be configured to Enabled by using all the default settings.DThe ASP.NET State Service should be configured to log on to the new local user account by using the Services console.

单选题Your team creates a Web site. The Web site needs to be deployed to a staging server for performance testing. You plan to make a number of performance enhancements and then retest. You need to compile and copy the Web site to the staging server. What should you do? ()AWrite a batch file that uses aspnet_compiler.exe.BWrite a batch file that uses InstallUtil.exe.CWrite a batch file that uses Csc.exe.DWrite a batch file that uses aspnet_wp.exe.