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>
A.<%: Model.FirstName %>
B.<%= Model.FirstName %>
C.<% Response.Write(Model.FirstName) %>
D.<% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %>
A.Html.ActionLink("Home", "Index", "Home")
B.Html.ActionLink("Home", "Index", "Home", new {area = ""}, null)
C.Html.ActionLink("Home", "Index", "Home", new {area = "Blog"}, null)
D.Html.ActionLink("Home", "Index", "Home", new {area = "Home"}, null)
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?()