A.@ MasterType
B.@ Master
C.@ PageType
D.@ MasterPage
您可能感兴趣的试卷
你可能感兴趣的试题
A.Add the following configuration to the
B.Add the following configuration to the
C.Add the following @ Page directive to pages that query the database.
D.Add the following @ Page directive to pages that query the database.
You are developing an ASP.NET Web service. The following code segment implements the service.
You need to ensure that both GetProduct methods can be called from a Web client. Which two actions should you perform?()
A.Remove line 01.
B.Add the static modifier on lines 05 and 11.
C.Add the following attribute before line 10. [SoapDocumentMethod(Action="GetProductById")]
D.Modify the attribute on line 10 as follows. [WebMethod(MessageName="GetProductById")]
A.OnLoad
B.Construct
C.OnDataBinding
D.SaveControlState
A.AjaxHelper
B.XDocument
C.JsonResult
D.DataContractJsonSerializer
You are developing an ASP.NET Web page. The page contains the following markup.
The pages code-behind file includes the following code segment.
You need to get a reference to the Image named img. Which code segment should you add at line 06?()
A.Image img = (Image)Page.FindControl("img");
B.Image img = (Image)e.Row.FindControl("img");
C.Image img = (Image)gvModels.FindControl("img");
D.Image img = (Image)Page.Form.FindControl("img");
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>
A.DataSource
B.DataSourceID
C.DataKeyNames
D.DataMember
A.ItemDataBound
B.Init
C.Prerender
D.<something I don‟t remember>
A. IComparer<T>
B. IEnumerable<T>
C. IEnumerator<T>
D. IEqualityComparer<T>
最新试题
Which control allows you to bind to data items that are returned from a data source and display them?()
You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML. Which two actions should you perform?()
You are developing an ASP.NET Web application.The application is configured to use the membership and role providers. You need to allow all users to perform an HTTP GET for application resources, but you must allow only the user named Moderator to perform a POST operation.Which configuration should you add to the web.config file?()
Which method of the Page class searches the page naming container for a server control with a particular identifer?()
In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes.()
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web application using .NET Framework 4.0. The Web application comprises a class named Employee with properties named as First Name, Last Name, and Age. You add a Web page in which you get a list of Employee objects and display those objects in a GridView control. You are required to add code so that the GridView row is highlighted in red color if the age of the employee is less than 21 years. What will you do to accomplish this?()
Which of the following is the correct collection of build events?()
You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user.What should you do?()
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. The ASP.NET application is used to track employee performance. It uses Microsoft Windows authentication. Employees are members of a group named Employees. Managers are members of a group named Managers. The root folder of the application is named Details. The Details folder displays information about employees„ performance. The Details folder has a subfolder named MoreDetails. You need to ensure that employees and managers can access pages stored in the Details folder. However, only managers can access pages stored in the MoreDetails folder. You make the following entries in the Web.config file in the Details folder.You make the following entries in the Web.config file in the MoreDetails folder.When managers try to access pages stored in the MoreDetails folder, they receive the following error message:"An error occurred during the processing of a configuration file required to service this request." You must ensure that managers are able to access pages stored in the MoreDetails folder. What will you do to accomplish this?()
Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?()