关于Redirect和Transfer以及Execute方法,下列说法正确的是()。A、Redirect和Transfer跳转到新网页后,不会再返回原网页,而Execute则会在执行完新网页后,返回原网页继续执行Execute方法后面的语句B、Redirect的重定向实际发生在客户端,而Execute和Transfer方法的重定向发生在服务器端,效率更高C、Redirect语句不能把一些环境变量一起传递到新网页中,而Execute和Transfer可以D、Redirect方法可以转向一个网页或其他网站,而

题目

关于Redirect和Transfer以及Execute方法,下列说法正确的是()。

  • A、Redirect和Transfer跳转到新网页后,不会再返回原网页,而Execute则会在执行完新网页后,返回原网页继续执行Execute方法后面的语句
  • B、Redirect的重定向实际发生在客户端,而Execute和Transfer方法的重定向发生在服务器端,效率更高
  • C、Redirect语句不能把一些环境变量一起传递到新网页中,而Execute和Transfer可以
  • D、Redirect方法可以转向一个网页或其他网站,而Execute和Transfer方法一般只能转到同一个应用程序的其他文件

相似考题
参考答案和解析
正确答案:A,B,C,D
更多“关于Redirect和Transfer以及Execute方法,下”相关问题
  • 第1题:

    简述使用Response.Redirect方法和Server.Transfer方法进行重定向操作的异同。
    T.ransfer方法将执行流程从当前的ASP文件转到同一服务器上的另一个页面。客户端和服务器只需一次通信。Redirect方法重定向操作的整个过程中,客户端与服务器端要进行两次通信,
    第一次是对原始页面的请求,得到目标已改变的应答,
    第二次通信是请求Response.Redirect指向新页面,得到重定向后的页面。

  • 第2题:

    Action类的execute方法返回的Action Forward对象name属性必须与struts-config.xml中元素的()属性匹配。

    • A、forward
    • B、name
    • C、path
    • D、redirect

    正确答案:B

  • 第3题:

    Server的Execute方法和Transfer方法都用于执行程序,其中()方法则在执行结束后返回原程序的中断点继续执行。

    • A、Execute
    • B、transfer
    • C、两者都可以
    • D、两者都不可以

    正确答案:A

  • 第4题:

    下列那种方法不能实现页面跳转的效果()。

    • A、ResponsE.Redirect方法
    • B、HTMLEncode方法
    • C、Server.Execue方法
    • D、Server.Transfer方法

    正确答案:B

  • 第5题:

    试说明在ASP程序中,Server.Execute和Server.Transfer在执行方式上有什么不同。


    正确答案: Transfer方法将执行流程从当前的ASP文件转到同一服务器上的另一个页面。客户端和服务器只需一次通信。
    Execute方法用来在当前ASP页面执行同一WEB服务器上指定的ASP页面,执行完毕后返回原页面调用的位置。

  • 第6题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application must redirect the original URL to a different ASPX page.  You need to ensure that the users cannot view the original URL after the page is executed. You also need to ensure that each page execution requires only one request from the client browser. What should you do?()

    • A、Use the Server.Transfer method to transfer execution to the correct ASPX page.
    • B、Use the Response.Redirect method to transfer execution to the correct ASPX page.
    • C、Use the HttpContext.Current.RewritePath method to transfer execution to the correct ASPX page.
    • D、Add the Location: new URL value to the Response.Headers collection. Call the Response.End() statement. Send the header to the client computer to transfer execution to the correct ASPX page.

    正确答案:C

  • 第7题:

    单选题
    下列那种方法不能实现页面跳转的效果()。
    A

    ResponsE.Redirect方法

    B

    HTMLEncode方法

    C

    Server.Execue方法

    D

    Server.Transfer方法


    正确答案: B
    解析: 暂无解析

  • 第8题:

    问答题
    请简述Execute、Transfer和Redirect方法的主要区别?

    正确答案: 三者都是停止执行当前网页,转到新的网页执行。
    主要区别有:
    一是,Redirect和Transfer跳转到新网页后,不会再返回原网页,而Execute则会在执行完新网页后,返回原网页继续执行Execute方法后面的语句。
    二是,Redirect的重定向实际发生在客户端,而Execute和Transfer方法的重定向发生在服务器端,效率更高。
    三是,Redirect语句不能把一些环境变量一起传递到新网页中,而Execute和Transfer可以。
    四是,Redirect方法可以转向一个网页或其他网站,而Execute和Transfer方法一般只能转到同一个应用程序的其他文件。
    解析: 暂无解析

  • 第9题:

    单选题
    要将客户引导到另一个ASP页面,可以采用()。
    A

    Response对象的Redirect方法

    B

    Response对象的End方法

    C

    Server对象的Execute方法

    D

    Server对象的Transfer方法


    正确答案: B
    解析: 暂无解析

  • 第10题:

    单选题
    下面哪种方法不能实现页面跳转的效果()
    A

    Response.Redirect方法

    B

    Server.Transfer方法

    C

    Server.Execute方法

    D

    HTML.Encode方法


    正确答案: C
    解析: 暂无解析

  • 第11题:

    单选题
    Server的Execute方法和Transfer方法都用于执行程序,其中()方法则在执行结束后返回原程序的中断点继续执行。
    A

    Execute

    B

    transfer

    C

    两者都可以

    D

    两者都不可以


    正确答案: A
    解析: 暂无解析

  • 第12题:

    问答题
    简述使用Response.Redirect方法和Server.Transfer方法进行重定向操作的异同。

    正确答案: T.ransfer方法将执行流程从当前的ASP文件转到同一服务器上的另一个页面。客户端和服务器只需一次通信。Redirect方法重定向操作的整个过程中,客户端与服务器端要进行两次通信,
    第一次是对原始页面的请求,得到目标已改变的应答,
    第二次通信是请求Response.Redirect指向新页面,得到重定向后的页面。
    解析: 暂无解析

  • 第13题:

    Execute()方法和Transfer()方法之间有何区别?


    正确答案: E.xecute()方法,处理完URL参数指定的页面后,控制权会返回给先前的页面
    而Transfer()方法中,控制权则不返回。

  • 第14题:

    Server.execute、server.transfer和response.redirect在执行文件时无区别。()


    正确答案:错误

  • 第15题:

    请简述Execute、Transfer和Redirect方法的主要区别?


    正确答案: 三者都是停止执行当前网页,转到新的网页执行。
    主要区别有:
    一是,Redirect和Transfer跳转到新网页后,不会再返回原网页,而Execute则会在执行完新网页后,返回原网页继续执行Execute方法后面的语句。
    二是,Redirect的重定向实际发生在客户端,而Execute和Transfer方法的重定向发生在服务器端,效率更高。
    三是,Redirect语句不能把一些环境变量一起传递到新网页中,而Execute和Transfer可以。
    四是,Redirect方法可以转向一个网页或其他网站,而Execute和Transfer方法一般只能转到同一个应用程序的其他文件。

  • 第16题:

    After completing a commercial transaction, () will execute the transfer of goods from the seller to the buyer in the most-effective manner.

    • A、Logistics
    • B、Supply chain
    • C、Virtual warehouse
    • D、Transportation

    正确答案:A

  • 第17题:

    下面哪种方法不能实现页面跳转的效果()

    • A、Response.Redirect方法
    • B、Server.Transfer方法
    • C、Server.Execute方法
    • D、HTML.Encode方法

    正确答案:C

  • 第18题:

    问答题
    Execute()方法和Transfer()方法之间有何区别?

    正确答案: E.xecute()方法,处理完URL参数指定的页面后,控制权会返回给先前的页面
    而Transfer()方法中,控制权则不返回。
    解析: 暂无解析

  • 第19题:

    判断题
    Server.execute、server.transfer和response.redirect在执行文件时无区别。()
    A

    B


    正确答案:
    解析: 暂无解析

  • 第20题:

    单选题
    You work as a Web Developer at Certkiller.com. You use Microsoft ASP.NET 3.5 to create a Webapplication.  A Hypertext Transfer Protocol (HTTP) handler is implemented to produce Human Interactive Proof(HIP) images. You have to make sure that the current page invoke the handler and automaticallycontinue executing after the handler completes execution.  What should you do?()
    A

    You should consider setting the RedirectLocation property of the HttpResponse class.

    B

    You should consider calling the Redirect method of the HttpResponse class.

    C

    You should consider calling the Execute method of the HttpServerUtility class.

    D

    You should consider calling the Transfer method of the HttpServerUtility class.


    正确答案: A
    解析: 暂无解析

  • 第21题:

    多选题
    在ASP.NET中,下列代码中正确的是()。
    A

    Server.Transfer(“Main.aspx”)

    B

    Server.Execute(“Main.aspx”)

    C

    Server.Execute(“Main.htm”)

    D

    Server.Transfer(“Main.htm”)


    正确答案: C,B
    解析: 暂无解析

  • 第22题:

    问答题
    试说明在ASP程序中,Server.Execute和Server.Transfer在执行方式上有什么不同。

    正确答案: Transfer方法将执行流程从当前的ASP文件转到同一服务器上的另一个页面。客户端和服务器只需一次通信。
    Execute方法用来在当前ASP页面执行同一WEB服务器上指定的ASP页面,执行完毕后返回原页面调用的位置。
    解析: 暂无解析

  • 第23题:

    多选题
    关于Redirect和Transfer以及Execute方法,下列说法正确的是()。
    A

    Redirect和Transfer跳转到新网页后,不会再返回原网页,而Execute则会在执行完新网页后,返回原网页继续执行Execute方法后面的语句

    B

    Redirect的重定向实际发生在客户端,而Execute和Transfer方法的重定向发生在服务器端,效率更高

    C

    Redirect语句不能把一些环境变量一起传递到新网页中,而Execute和Transfer可以

    D

    Redirect方法可以转向一个网页或其他网站,而Execute和Transfer方法一般只能转到同一个应用程序的其他文件


    正确答案: B,A
    解析: 暂无解析