单项选择题

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.


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题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"

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

3.单项选择题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” _ %>

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

A.Configure the Web site to enable session state.
B.Configure the Web site to require authentication and to use personalization.
C.Add a ProxyWebPartManager control to the page.
D.Add a AppearanceEditorPart control to the page.

7.单项选择题In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes.()

A.var n = $(“input:checked”).length;
B.var n = $(“:input, :checked”).length;
C.var n = $(“input:selected”).length;
D.var n = $(“:input, :selected”).length;

A.$(“#div1”).mouseenter(displayname);
B.$(“.div1”).mouseenter(displayname);
C.$(“#div1”).mousemove(displayname);
D.$(“.div1”).mousemove(displayname);

9.单项选择题Which class is used to specify a set of features to support on the XrnlReader object created by the Create method?()

A.XmlReaderSettings
B.XmlSecureResolver
C.XmlValidatingReader
D.XmlTextReaderSelectMany(c => c.CustomerAddresses).Count()