You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. The following markup should be added to a page: The Question control is a custom server control that originates from the WebControl. This controldoes not implement any interfaces. The following characteristics are applied to the control’s class:ToolboxData, Designer, and DefaultProperty. You have to make sure that the Question control is able to participate in server-side validation onthis page. What should you do?()A、You should consider modifying the Question control’s class in order to implement IValidator.B、You should consider setting the ValidationGroup property of the RequiredFieldValidator controlto UserControl.C、You should apply the ValidationProperty feature to the Question control’s class.D、You should consider setting the InitialValue property of the RequiredFieldValidator control to anempty string.
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. The following markup should be added to a page:
- A、You should consider modifying the Question control’s class in order to implement IValidator.
- B、You should consider setting the ValidationGroup property of the RequiredFieldValidator controlto UserControl.
- C、You should apply the ValidationProperty feature to the Question control’s class.
- D、You should consider setting the InitialValue property of the RequiredFieldValidator control to anempty string.
相关考题:
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You host the Web application in Microsoft Internet Information Services (IIS) 6.0. You browse theapplication and receive the following error message: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable.Please hit the "Refresh" button in your web browser to retry your request. You view the Application event log and discover the following message: It is not possible to run two different versions of ASP.NET in the same IIS process. Please use theIIS Administration Tool to reconfigure your server to run the application in a separate process. To ensure productivity you need to solve this problem as quick as possible. What should you do?()A、You should change the IIS isolation mode.B、You should assign the application to another application pool.C、You should configure all applications that are part of your application's application pool in orderto use the same version of ASP.NET.D、You should run the Aspnet_regiis.exe Tool.E、You should restart the application pool that hosts the application.
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement?()A、the ITemplatable interface B、the INamingContainer interface C、the IRequiresSessionState interfaceD、the IPostBackDataHandler interface
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You create a folder named Dark in the App_Themes folder of the Web application. You also addfour skin files to this folder. You have to make sure that the controls on a page have their appearances overridden by the control definitions defined in the skin files. What should you do? Which Page directive should you use?()A、You should use the page directive: %@ Page StyleSheetTheme="App_Themes.Dark"/B、You should use the page directive: %@ Page Theme="App_Themes.Dark"/C、You should use the page directive: %@ Page Theme="Dark"/D、You should use the page directive: %@ Page StyleSheetTheme="Dark"/
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. This application will be part of a solution that contains a Windows Communication Foundation (WCF) service project. The Web application will be used to make calls to a service identified in theWCF service project. Management is planning to host the Web application on a separate serverfrom the WCF service. They want the WCF service to perform remotely. You need to add areference to the WCF service. What should you do?()A、You should add an assembly reference to the project.B、You should add a project reference to the project.C、You should add a Web reference to the project.D、You should add a service reference to the project.
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. An exception management framework is not used in the Web application. You need to ensure thatthe application log the unhandled exceptions automatically to the event log. You need to configurethe Web.config file to accomplish this. Identify the configuration that will assist you in thisscenario?()A、You should consider using the healthMonitoring enabled="true"/ configuration.B、You should consider using the deployment retail="true"/ configuration.C、You should consider using the customErrors mode="On"/ configuration.D、You should consider using the trace enabled="true"/ configuration.
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You decide to enable session state for the application. You need to determine whether the sessionID is maintained in the URL of the request. What should you do?()A、The RequestType property of the HttpRequest class should be accessed.B、The IsCookieless property of the HttpSessionState class should be accessed.C、The UrlDecode method of the HttpServerUtility class should be accessed.D、The UrlEncode method of the HttpServerUtility class should be accessed.
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. A third-party assembly contains custom server controls. This assembly does not contain a strongname and it’s not part of the application’s Microsoft Visual Studio 2008 solution. You have to makesure that the other users are able to use the custom controls. You decide to configure theapplications project. What should you do?()A、You should add a project reference to the project.B、You should add a Web reference to the project.C、You should add a service reference to the project.D、You should add an assembly reference to the project.
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You need to ensure that the application is able to load staff information from an XML file into aDataSet instance. The XML file contains an inline schema. You have to call a method of theDataSet class in order to load the information. Identify how you can accomplish this?()A、You should call the ReadXml method with the ReadSchema XML read mode.B、You should call the ReadXml method with the InferTypedSchema XML read mode.C、You should call the ReadXmlSchema method.D、You should call the ReadXml method with the InferSchema XML read mode.
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library. You write the following code segment for the SharedControl control. (Line numbers are included for reference only.) 01 Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs) 02 MyBase.OnInit(e) 03 04 End Sub All the master pages in the ASP.NET application contain the following directive. %@ Master Language="VB" EnableViewState="false" % You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page. Which code segment should you insert at line 03?()A、Page.RegisterRequiresPostBack(Me)B、Page.RegisterRequiresControlState(Me)C、Page.UnregisterRequiresControlState(Me)D、Page.RegisterStartupScript("SharedControl", "server")
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement?()A、the ITemplatable interfaceB、the INamingContainer interfaceC、the IRequiresSessionState interfaceD、the IPostBackDataHandler interface
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application. You write the following code fragment: ’ runat="server"/ ’ runat="server" / When you access the Web page, the application throws an error. You need to ensure that the application successfully updates each caption and stores it in the database. What should you do?()A、Add the ID attribute to the Label control. B、Add the ID attribute to the TextBox control. C、Use the Bind function for the Label control instead of the Eval function. D、Use the Eval function for the TextBox control instead of the Bind function.
You work as a system administrator at Certkiller.com. You are in the process of creating anASP.NET application using Microsoft .NET Framework v3.5. You receive an instruction from management to create a custom-templated server control. Toensure productivity you need to make sure that the child controls of the newly created servercontrol are identified within the hierarchy of the page. You thus need to identify the interface thatwill accomplish this. What should you do?()A、You should consider implementing the IRequiresSessionState interface.B、You should consider implementing the ITemplatable interface.C、You should consider implementing the IPostBackDataHandler interface.D、You should consider implementing the INamingContainer interface
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library. You write the following code segment for the SharedControl control: 01 protected override void OnInit(EventArgs e) 02 { 03 base.OnInit(e); 04 ► 05 } All the master pages in the ASP.NET application contain the following directive. %@ Master Language="C#" EnableViewState="false" % You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page. Which code segment should you insert at line 04?()A、Page.RegisterRequiresPostBack(this); B、Page.RegisterRequiresControlState(this); C、Page.UnregisterRequiresControlState(this); D、Page.RegisterStartupScript("SharedControl","server");
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication. You decide to make use of Microsoft ASP.NET 3.5 in order to create the application. The followingmarkup is present on the page: " ="" selectcommand="GetUsers" selectcommandtype="StoredProcedure" filterexpression="Active=1 AND Name LIKE ’{0}%’"> The page is used to retrieve the Users from a company database. However, only the active usersare displayed. The TextBox control allows you to also filter users by status. You do not specify astatus when you click the Filter button. You notice that the page does not filter by active users andshows all the users that are retrieved from the database. You need to make the necessary settingsto ensure that only the active users are being displayed on the page when a status is notspecified. What should you do?()A、You should ensure that a default value for the Status property of the ControlParameter controlis set.B、You should ensure that the PropertyName property of the ControlParameter control is set toText.C、You should ensure that the ControlParameter control’s ConvertEmptyStringToNull property isset to false.D、You should ensure that the {0} placeholder in the FilterExpression property is replaced with the(?) symbol.
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. This application will be part of a solution that contains a Windows Communication Foundation (WCF) service project. The Web application will be used to make calls to a service identified in theWCF service project. Management is planning to host the Web application on a separate serverfrom the WCF service. They want the WCF service to perform remotely. You need to add areference to the WCF service. What should you do?()AYou should add an assembly reference to the project.BYou should add a project reference to the project.CYou should add a Web reference to the project.DYou should add a service reference to the project.
多选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. In order toimplement partial rendering on a page you add the following markup: You only want the content in the updatePanel2 control to be updated when the Button controlnamed _btnUpd is clicked. You need to configure the page to accomplish this goal of thecompany. What should you do?()AYou should consider replacing AsyncPostBackTrigger with PostBackTrigger.BYou should consider setting the UpdateMode property of updatePanel2 to Conditional.CYou should consider setting the ChildrenAsTriggers property of updatePanel1 to false.DYou should consider setting the ChildrenAsTriggers property of updatePanel2 to false.EYou should consider setting the UpdateMode property of updatePanel1 to Conditional.FYou should consider setting the UpdateMode property of updatePanel2 to Always.
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You need to ensure that the application is able to load staff information from an XML file into aDataSet instance. The XML file contains an inline schema. You have to call a method of theDataSet class in order to load the information. Identify how you can accomplish this?()AYou should call the ReadXml method with the ReadSchema XML read mode.BYou should call the ReadXml method with the InferTypedSchema XML read mode.CYou should call the ReadXmlSchema method.DYou should call the ReadXml method with the InferSchema XML read mode.
单选题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library. You write the following code segment for the SharedControl control: 01 protected override void OnInit(EventArgs e) 02 { 03 base.OnInit(e); 04 ► 05 } All the master pages in the ASP.NET application contain the following directive. You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page. Which code segment should you insert at line 04?()APage.RegisterRequiresPostBack(this); BPage.RegisterRequiresControlState(this); CPage.UnregisterRequiresControlState(this); DPage.RegisterStartupScript(SharedControl,server);
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. The following markup should be added to a page: The Question control is a custom server control that originates from the WebControl. This controldoes not implement any interfaces. The following characteristics are applied to the control’s class:ToolboxData, Designer, and DefaultProperty. You have to make sure that the Question control is able to participate in server-side validation onthis page. What should you do?()AYou should consider modifying the Question control’s class in order to implement IValidator.BYou should consider setting the ValidationGroup property of the RequiredFieldValidator controlto UserControl.CYou should apply the ValidationProperty feature to the Question control’s class.DYou should consider setting the InitialValue property of the RequiredFieldValidator control to anempty string.
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication. You decide to make use of Microsoft ASP.NET 3.5 in order to create the application. The followingmarkup is present on the page: " SelectCommand="GetUsers" SelectCommandType="StoredProcedure" FilterExpression="Active=1 AND Name LIKE ’{0}%’" The page is used to retrieve the Users from a company database. However, only the active usersare displayed. The TextBox control allows you to also filter users by status. You do not specify astatus when you click the Filter button. You notice that the page does not filter by active users andshows all the users that are retrieved from the database. You need to make the necessary settingsto ensure that only the active users are being displayed on the page when a status is notspecified. What should you do?()AYou should ensure that a default value for the Status property of the ControlParameter controlis set.BYou should ensure that the PropertyName property of the ControlParameter control is set toText.CYou should ensure that the ControlParameter control’s ConvertEmptyStringToNull property isset to false.DYou should ensure that the {0} placeholder in the FilterExpression property is replaced with the(?) symbol.
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. An exception management framework is not used in the Web application. You need to ensure thatthe application log the unhandled exceptions automatically to the event log. You need to configurethe Web.config file to accomplish this. Identify the configuration that will assist you in thisscenario?()AYou should consider using the healthMonitoring enabled=true/ configuration.BYou should consider using the deployment retail=true/ configuration.CYou should consider using the customErrors mode=On/ configuration.DYou should consider using the trace enabled=true/ configuration.
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You create a folder named Dark in the App_Themes folder of the Web application. You also addfour skin files to this folder. You have to make sure that the controls on a page have their appearances overridden by the control definitions defined in the skin files. What should you do? Which Page directive should you use?()AYou should use the page directive: %@ Page StyleSheetTheme=App_Themes.Dark/BYou should use the page directive: %@ Page Theme=App_Themes.Dark/CYou should use the page directive: %@ Page Theme=Dark/DYou should use the page directive: %@ Page StyleSheetTheme=Dark/
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You decide to enable session state for the application. You need to determine whether the sessionID is maintained in the URL of the request. What should you do?()AThe RequestType property of the HttpRequest class should be accessed.BThe IsCookieless property of the HttpSessionState class should be accessed.CThe UrlDecode method of the HttpServerUtility class should be accessed.DThe UrlEncode method of the HttpServerUtility class should be accessed.
多选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. You host the Web application in Microsoft Internet Information Services (IIS) 6.0. You browse theapplication and receive the following error message: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable.Please hit the "Refresh" button in your web browser to retry your request. You view the Application event log and discover the following message: It is not possible to run two different versions of ASP.NET in the same IIS process. Please use theIIS Administration Tool to reconfigure your server to run the application in a separate process. To ensure productivity you need to solve this problem as quick as possible. What should you do?()AYou should change the IIS isolation mode.BYou should assign the application to another application pool.CYou should configure all applications that are part of your application's application pool in orderto use the same version of ASP.NET.DYou should run the Aspnet_regiis.exe Tool.EYou should restart the application pool that hosts the application.
单选题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement?()Athe ITemplatable interfaceBthe INamingContainer interfaceCthe IRequiresSessionState interfaceDthe IPostBackDataHandler interface
单选题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement?()Athe ITemplatable interface Bthe INamingContainer interface Cthe IRequiresSessionState interfaceDthe IPostBackDataHandler interface
单选题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. A third-party assembly contains custom server controls. This assembly does not contain a strongname and it’s not part of the application’s Microsoft Visual Studio 2008 solution. You have to makesure that the other users are able to use the custom controls. You decide to configure theapplications project. What should you do?()AYou should add a project reference to the project.BYou should add a Web reference to the project.CYou should add a service reference to the project.DYou should add an assembly reference to the project.