ASP常见WRITE方法的使用

来源:互联网 发布:notepad sql格式化 编辑:程序博客网 时间:2024/06/10 19:04

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>常见Write方法的使用</title>
</head>
<body>
<%
myname="输出变量myname"
mycolor="red"
Response.Write("How are you!<br>") '直接输出字符串
Response.Write(myname&"<br>")  '输出变量
Response.Write("<b><i>粗体加斜体字</i></b><br>") '直接输出HTML代码
Response.Write("<font color="&mycolor&">红色的字体"&"</font><br>")'输出带变量的HTML代码
Response.Write("输出双引号--""<br>")  '输出双引号
Response.Write("输出服务器端标志--%/>")  '输出服务器标志
%>
</body>
</html>