ASP基础教程之实例学习ASP

ASP基础教程之实例学习ASP

ASP基础教程之实例学习ASP Response 对象 ASP Response 对象用于从服务器向用户发送输出的结果。

实例

使用ASP写文本

本例演示如何使用ASP来写文本。

以下为引用的内容:

<html>

<body>

<%

response.write("Hello World!")

%>

</body>

</html>

在ASP中使用HTML标签格式化文本

本例演示如何使用ASP将文本和HTML标签结合起来。

以下为引用的内容:

<html>

<body>

<%

response.write("<h2>You can use HTML tags to format the text!</h2>")

%>

<%

response.write("<p style='color:#0000ff'>This text is styled with the style

attribute!</p>")

%>

</body>

</html>

将用户重定向至不同的URL

本例演示如何将用户重定向至另一个的URL。

以下为引用的内容:

<%

if Request.Form("select")<>"" then

Response.Redirect(Request.Form("select"))

end if

%>

<html>

<body>

你可能喜欢

  • ASP代码
  • ASP.NET教程
  • word基础教程
  • ASP.NET入门
  • VB基础教程
  • ACCESS数据库

ASP基础教程之实例学习ASP相关文档

最新文档

返回顶部