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.
您可能感兴趣的试卷
你可能感兴趣的试题
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"
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.
A.<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
B.<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
C.<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
D.<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>
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.
A.Master
B.Default
C.Shared
D.Common
A.Server session
B.Cookie
C.ViewState
D.Hidden Field
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);
A.XmlReaderSettings
B.XmlSecureResolver
C.XmlValidatingReader
D.XmlTextReaderSelectMany(c => c.CustomerAddresses).Count()
A.Web Setup project
B.Web-based deployment
C.Deployment manifest
D.Web Deployment Tool
最新试题
You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.()
Which event of the GridView class occurs when the Edit button of a row is clicked, but before the GridView control enters edit mode?()
ou are developing an ASP.NET MVC 2 application. You create a view that will be returned by action methods in multiple controllers. You need to place the view in the appropriate folder. To which subfolder within the Views folder should you add the view?()
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?()
Which of the following is the correct collection of build events?()
You are perfoming security testing on an existing asp.net web page.You notice that you are able to issue unauthorised postback requests to the page. You need to prevent unauthorised post back requests. which page directive you use?()
You create an ASP.NET server control in the SampleControl namespace. The control uses a JavaScript file names Refresh.js to implement AJAX functionality.You need to ensre that the JavaScript file is included in the assembly. Which two actions should you perform?()
Which utility allows you to pre-compile and publish your Web site to a new location?()
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 tool is used to simplify the migration, management and deployment of IIS Web servers, Web applications and Web sites?()