单项选择题

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?()

A.Pass the object data in a hidden field.
B.Store the object instance in a session variable.
C.Use a cookie that contains the object data.
D.Encode the object data and pass it in a query string parameter.


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.()

A.<assembles> someoptions </assembles> 
B.<pages controlRenderingCompatibilityVersion="3.5"/>
C.<compilation targetframework = "3.5" />
D.<xhtmlConformance mode="Legacy" />

2.单项选择题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.()

A.<%assembly TargetName="contosobuisness" %>
B.<%assembly ID="contosobuisness" %> 
C.<%@ Assembly Name="contosobuisness" %>
D.<%assembly virtualpath="contosobuisness" %>

5.单项选择题You are developing a Asp.net web application tht includes a panel control that has ID contentsection.You need to add a textBox control to the panel control.()

A.this.RequireControlState(this.LoadControl(typeof(TextBox),null));
B.this.ContentSection.control.add(this.FindControl(ContentSection.ID + "asp:TextBox"));
C.this.ContentSection.control.add(this.LoadControl(typeof(TextBox),null));
D.this.LoadComplete("asp:TextBox").IntiantiateIn(Content Section)

7.单项选择题

The page will be posted to the server after one or more image files are selected for upload.You need to ensure that all unuploaded files are saved to the server within one call to a single event handler. 
What should you do? ()

A.Read the HttpRequest.Files property and call the HttpPostedFile.SaveAs method for each file.
B.Read the HttpRequest.inputStream property and call the System.Io.File.WriteLines method for each file.
C.Read the HttpRequest.inputStream property and call the HttpResponse.WriteLine method for each file.
D.Read the HttpRequest.Files property and call the System.Io.File.WriteLines method for each file.

8.单项选择题You need to ensure that when the button is clicked, both update panels update the tim without generating a postback.  What should you do?()

A.Add the following marktip to UpdatePanel1.  <Triggers>  <asp:PostBackTrigger ControlID="btnSave" />  </Triggers>  
B.Set the UpdateMode property for the UpdatePanel2 to "Always"
C.Add the following markup to UpdatePanel2  <Triggers>  <asp:AsyncPostBackTrigger ControlID="btnSave"  EventName="Click" />  </Triggers>  
D.Set the UpdateMode property for UpdatePanel2 to "Conditional"

9.单项选择题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?()

A.Enable the User-unhandled option for SqlException in Visual Studio Exception configuration.
B.Set the value of the customErrors element‟s mode attribute to “on” in the web.config file.
C.Manually attach the Visual Studio debugger to Internet Explorer.
D.Enable the thrown option for SqlException in Visual Studio exception configuration.

10.单项选择题You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()

A.<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
B.<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
C.<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
D.<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>

最新试题

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 need to ensure that when the button is clicked, both update panels update the tim without generating a postback.  What should you do?()

题型:单项选择题

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

题型:单项选择题

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?()

题型:单项选择题

You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()

题型:单项选择题

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.()

题型:单项选择题

You develop an ASP.NET Web page that includes multiple WebPartZone controls, an EditorZone. Users report that they cannot customize the layout of the page by moving WebParts from one.You need to ensure that users can successfully move Web Parts from one zone to another. 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 Web application connects to a SQL Server database. You use the ADO.NET Entity Framework to handle persistence-ignorant entities. You create an ObjectContext object named ObjContext. Subsequently, you change properties on numerous entities. You are required to save the changed entity values in the SQL Server database. Which of the following code segments will you use?()

题型:单项选择题

In a page there is a div (I guess it was a div) and you need to execute a javascript function when if first moves the mouse over the element.()

题型:单项选择题

You have to store user data of 200 KB in an object. Which state management technique to use:()

题型:单项选择题