易截截图软件、单文件、免安装、纯绿色、仅160KB

动态网页ASP语言基础(2)

创建一个简单的ASP页面
在服务器端编写的文件 index.asp :
以下为引用内容:
<%@LANGUAGE="JSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>第一个简单页面</title>
</head>
<body>
我们对学好ASP语言<br/>
<% for(i=1;i<8;i++){ %>
非常
<br/>
<% } %>
有信心!
</body>
</html>
在浏览器地址栏中键入:http://localhost/index.asp  可以看到如下的运行结果:
我们对学好ASP语言
      非常 
      非常
      非常
      非常
      非常 
      非常 
      非常
      有信心!
运行结果的源文件信息:
以下为引用内容:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=http://www.w3.org/1999/xhtml>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>第一个简单页面</title>
</head>
<body>
我们对学好ASP语言<br/>
非常
<br/>
非常
<br/>
非常
<br/>
非常
<br/>
非常
<br/>
非常
<br/>
非常
<br/>
有信心!
</body>
</html>
本文链接:http://www.oversteper.com/wprogram/asp/814.html


相关文档:

asp 图片循环滚动(left)

<div class="scrollImgList1" id="scrollImgList1">
 <div class="LeftBotton" onmousedown="ISL_GoUp_1()" onmouseup="ISL_StopUp_1()" onmouseout="ISL_StopUp_1()"></div>
 <div class="Cont" id="ISL_Cont_1">
  <div class="ScrCont">
   <d ......

asp数组随机排序

这段代码的功能是:将一个数组打乱顺序,显示出来,让每一次显示的顺序都不一样。
<%
Dim tt
tt=Split("1,2,3,4,5,6",",")
'随机排序  
leng=UBound(tt)
randomize  
for ii=0 to leng-1  
 b=int(rnd()*leng)  
 temp=tt(b)  
 tt(b ......

去除网页源代码中的网页标签,只留文字部分 asp 函数

<%           
Function RemoveHTML( strText )
     Dim TAGLIST
     TAGLIST = ";!--;!DOCTYPE;A;ACRONYM;ADDRESS;APPLET;AREA;B;BASE;BASEFONT;" &_
         &n ......

ASP:rs.getRows()

本文转自:http://hi.baidu.com/viewhainan/blog/item/663d68605e7de942ebf8f80a.html
GetRows()方法
    是将数据从 Recordset 复制到二维数组中,这是一个二维数组,第一个下标标识字段,第二个则标识记录号,所以 rsArray = rs.GetRows() rsArray(0, 0)就表示记录集第一行的第一字段值 rsArray(1, 0)就 ......

我写的一个asp上传组件

  网上流传的种种asp上传类真是太烦琐了,我自己写了一个上传类。这个上传类体积很小,只适用于单文件上传,返回结果是一个json,格式为:{"err":"出错原因","msg":"上传文件的地址"},例如:{"err":"\u6587\u4EF6\u592A\u5927\u4E86\2C\u4E0A\u4F20\u6587\u4EF6 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号