蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年8月25日 8:28

[ASP]PHP的(echo $page_title;)语句转换为ASP怎么写?

请问,与PHP以下两个语句作用相当的ASP语句应该怎么写呢?

[code]
<?php echo $page_title; ?>//此句写在eng_all_plans.inc中部,很多页面调用它.

//譬如about.php页头的代码是:
#!/usr/bin/php
<?php $page_title = "About US"; require("includes/eng_all_plans.inc");?>
[/code]

请知道的朋友不吝赐教!多谢:)

<!--#include file="includes/eng_all_plans.inc"-->
<%
page_title = "About US"
Response.Write page_title
%>


多谢孤老师.

完整的写法是:
[code]
<%= page_title %>//此句写在eng_all_plans.inc中部,下面是具体页的:
<%
page_title = "Account Activation "
%>
<!-- #include file="includes/enu_all_plans.inc" -->[/code]




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com