server.execute( "aa.asp ")
response.redirect( "aa.asp ")
有什么区别
------解决方案--------------------
视需要而定
例如:
aa.asp内容
<%response.write "bb "%>
采用redirect
response.write "aa "
response.redirect "aa.asp "
response.write "cc "
屏幕内容:
bb
流程是输出aa,然后被重定向到aa.asp,屏幕被清空,输出bb,response.write "cc "则不执行,网页地址是aa.asp
采用execute
response.write "aa "
server.execute( "aa.asp ")
response.write "cc "
屏幕内容是
aa bb cc
流程是输出aa,然后执行aa.asp,输出bb,然后返回,继续执行,网页地址仍为原来