单项选择题
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.
相关考题
-
单项选择题
Youneedtoensurethatwhenthebuttonisclicked,bothupdatepanelsupdatethetimwithoutgeneratingapostback.Whatshouldyoudo?()
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" -
单项选择题
YouaredebugginganASP.NETWebapplicationbyusingtheVisualStudiodebugger.TheapplicationisincorrectlyhandlingaSQLExceptionontheloginpage.Youneedtobreakexecutionwheretheexceptionisthrown.Whatshouldyoudo?()
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. -
单项选择题
YouareimplementinganASP.NETWebpage.Thepageincludesseveralcontrols,butonlyaGridViewrequiresviewstate.YousettheGridView…Youneedtoensurethatthepagewillomitunneededviewstate.Wich@Pagedirectiveshouldyouuse?()
A.<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
B.<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
C.<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
D.<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>
