新足迹

 找回密码
 注册

精华好帖回顾

· 财年底买新车必看 —— 2012年财年底打折信息汇集帖 (2012-5-8) garysu · 带着3岁皮娃和5个月奶娃的日本暴走~~~照片游记全文毕~~~电梯已安装!!! (2012-12-31) 2484335
· 参赛-东北人的春节,小鸡炖蘑菇 + 凉拌拉皮 (2007-2-21) powermao · 东游记----墨尔本买房记 (2010-3-11) t_guoguo
Advertisement
Advertisement
查看: 1523|回复: 7

Which of the following transfer execution directly to another page? [复制链接]

头像被屏蔽

禁止发言

发表于 2010-11-22 13:27 |显示全部楼层
此文章由 澳贼 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 澳贼 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Which of the following transfer execution directly to another page?


9.  Which of the following transfer execution directly to another page?  
  A.  Server.Transfer(correct answer)  
  B.  Response.Redirect  
  C.  Both A) and B)(your answer)  
  D.  None of the Above  


正确答案是A.
为什么Response.Redirect  不是??
签名被屏蔽
Advertisement
Advertisement

发表于 2010-11-22 13:43 |显示全部楼层
此文章由 coin_king 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 coin_king 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Response.Redirect是通过Browser to redirect,不是server side上的。

A redirect is just a suggestion – it’s like saying to the client “Hey, you might want to look at this”. All you tell the client is the new URL to look at, and if they comply, they do a second request for the new URL.

评分

参与人数 1积分 +4 收起 理由
澳贼 + 4 好人

查看全部评分

头像被屏蔽

禁止发言

发表于 2010-11-22 13:45 |显示全部楼层
此文章由 澳贼 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 澳贼 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 liedong 于 2010-11-22 14:43 发表
Response.Redirect是通过Browser to redirect,不是server side上的。

A redirect is just a suggestion – it’s like saying to the client “Hey, you might want to look at this”. All you tell the client is ...


看来是我没看懂题目
签名被屏蔽

发表于 2010-11-22 13:51 |显示全部楼层
此文章由 coin_king 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 coin_king 所有!转贴必须注明作者、出处和本声明,并保持内容完整
"transfer execution directly " that's the key.
头像被屏蔽

禁止发言

发表于 2010-11-22 14:00 |显示全部楼层
此文章由 澳贼 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 澳贼 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 liedong 于 2010-11-22 14:51 发表
"transfer execution directly " that's the key.


了解
签名被屏蔽

2010年度奖章获得者

发表于 2010-11-22 16:00 |显示全部楼层
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
当然是A啦。

redirect 是server又向server 发了一个新的request。

Server.Transfer是在同一个request完成的。 所以连url都不变。
Advertisement
Advertisement
头像被屏蔽

禁止发言

发表于 2010-11-22 18:09 |显示全部楼层
此文章由 澳贼 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 澳贼 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-11-22 17:00 发表
当然是A啦。

redirect 是server又向server 发了一个新的request。

Server.Transfer是在同一个request完成的。 所以连url都不变。


题外话。 asp.net ajax 似乎不能用server.transfer
签名被屏蔽

发表于 2010-11-22 21:18 |显示全部楼层
此文章由 乱码 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 乱码 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 澳贼 于 2010-11-22 19:09 发表


题外话。 asp.net ajax 似乎不能用server.transfer


是的,带update panel的肯定不能用,其他framework的ajax call理论上应该可以,因为他们不用update panel自带的PageRequestManager来parsing response,而用自己的call back function.

发表回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Advertisement
Advertisement
返回顶部