The page will be

题目

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题:

要显示格式为“页码/总页数”的页码,应当设置文本框的控件来源属性是( )。

A.[pages]/[page]

B.=[pages]/[page]

C.[page]&"/"&[pages]

D.=[page]&"/"&(pages]


正确答案:D

第2题:

YouareimplementinganASP.NETpageinane-commerceapplication.CodeinabtnAddToCart_Clickeventhandleraddsaproducttotheshoppingcart.Thepageshouldcheckthestatusoftheshoppingcartandalwaysshowacarticonwhenoneormoreitemsareintheshoppingcart.Thepageshouldhidetheiconwhentheshoppingcarthasnoitems.Youneedtoaddaneventhandlertoimplementthisrequirement.Whicheventhandlershouldyouadd?()

A.btnAddToCart_Click

B.Page_Load

C.Page_PreRender

D.Page_PreInit


参考答案:C

第3题:

以下是ASP.NET 页生命周期事件的有( )

A、Page_PreInit

B、Page_Init

C、Page_Load

D、Page_PreRender

E、Page_Unload


参考答案:ABCDE

第4题:

要设置某个JSP页面为错误处理页面,以下page指令正确的是()。

  • A、〈%@ page errorPage="true"%〉
  • B、〈%@ page isErrorPage="true"%〉
  • C、〈%@ page extends="javax.servlet.jsp.JspErrorPage"%〉
  • D、〈%@ page info="error"%〉

正确答案:B

第5题:

Page指令用于定义JSP文件中的全局属性,下列关于该指令用法的描述不正确的是:()

  • A、<%@ page %><%@ page %>作用于整个JSP页面
  • B、可以在一个页面中使用多个<%@ page %><%@ page %>指令
  • C、为增强程序的可读性,建议将<%@ page %><%@ page %>指令放在JSP文件的开头,但不是必须的
  • D、<%@ page %><%@ page %>指令中的属性只能出现一次

正确答案:D

第6题:

You create a master page named PageBase.master. The master page contains a Label control named lblTitle.You create a content page that references the master page.You need to change the Text property of the master page‘s lblTitle control from the content page.Which code segment should you use?()

A.

B.

C.

D.


参考答案:A

第7题:

YoucreateaWebpagenamedTestPage.aspxandausercontrolnamedcontainedinafilenamedTestUserControl.ascx.YouneedtodynamicallyaddTestUserControl.ascxtoTestPage.aspx.Whichcodesegmentshouldyouuse?()

A.protectedvoidPage_Load(objectsender,EventArgse){ControluserControl=Page.LoadControl("TestUserControl.ascx");Page.Form.Controls.Add(userControl);}

B.protectedvoidPage_Load(objectsender,EventArgse){ControluserControl=Page.FindControl("TestUserControl.ascx");Page.Form.Controls.Load(userControl);}

C.protectedvoidPage_PreInit(objectsender,EventArgse){ControluserControl=Page.LoadControl("TestUserControl.ascx");Page.Form.Controls.Add(userControl);}

D.protectedvoidPage_PreInit(objectsender,EventArgse){ControluserControl=Page.FindControl("TestUserControl.ascx");Page.Form.Controls.Load(userControl);}


参考答案:C

第8题:

要在页面上创建一个指向上一级目录中文件page. htm 的链接,在属性检查器的链接栏中应该输入( )。

A./page. htm

B.mailto: page. Htm

C.page.htm

D.一/page. htm


参考答案:D

第9题:

()用于声明当前页为error页?

  • A、<%@ page errorPage="true" %>
  • B、<%@ page info="error" %>
  • C、<%@ page pageEndcoding="error" %>
  • D、<%@ page isErrorPage="true" %>

正确答案:D

第10题:

Which ensures that a JSP response is of type "text/plain"?()

  • A、<%@ page mimeType="text/plain" %>
  • B、<%@ page contentType="text/plain" %>
  • C、<%@ page pageEncoding="text/plain" %>
  • D、<%@ page contentEncoding="text/plain" %>
  • E、<% response.setEncoding("text/plain"); %>

正确答案:B

更多相关问题