单项选择题You are developing an ASP.NET Dynamic Data Web application. Boolean fields must display as Yes or No instead of as a check box. You replace the markup in the default Boolean field template with the following markup.You need to implement the code that displays Yes or No. Which method of the FieldTemplateUserControl class should you override in the BooleanField class?()

A.OnLoad
B.Construct
C.OnDataBinding
D.SaveControlState


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题

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");

3.单项选择题

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>  

5.单项选择题Gridview: How to change the image of an image control place in each row in a gridview:()

A.ItemDataBound
B.Init 
C.Prerender 
D.<something I don‟t remember>

10.多项选择题

You are developing an ASP.NET Web page. You add the following markup to the page.
You add the following code segment to the code-behind.
You need to save the uploaded file and display a message to the user that indicates that the upload either succeeded or failed. Which two actions should you perform?()

A.Replace line 3 with the following code segment. if (FileUpload1.HasFile)
B.Replace line 3 with the following code segment. if (FileUpload1.FileContent.Length > 0)
C.Insert the following code segment at line 6.  FileUpload1.SaveAs(saveName);
D.Insert the following code segment at line 6. FileUpload1.FileContent.CopyTo(new FileStream(saveName, FileMode.Open);

最新试题

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 are debugging an ASP.NET Web application by using the Visual Studio debugger. The application is incorrectly handling a SQL Exception on the login page. You need to break execution where the exception is thrown . What should you do?()

题型:单项选择题

Which method of the Page class searches the page naming container for a server control with a particular identifer?()

题型:单项选择题

A library called contosobuisness.dll has been created and u need to accept it in a page.. all options had the <%assembly tag but the att differed.()

题型:单项选择题

Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?()

题型:单项选择题

Which event of the GridView class occurs when the Edit button of a row is clicked, but before the GridView control enters edit mode?()

题型:单项选择题

Which class is used to specify a set of features to support on the XrnlReader object created by the Create method?()

题型:单项选择题

You have a login.ascx control and to display it in a view which method u would use()

题型:单项选择题

Which class defines the contract that ASP.NET implements to provide membership services using custom membership providers?()

题型:单项选择题

You are developing an ASP.NET MVC 2 Web Application. You need to implement an asynchronous controller named AccountingController, and you must ensure that the export action required proper authorization.Which code segment should you use?()

题型:单项选择题