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

asp从数据库中输出的东西换行

 <%  
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from 0791idc_News where BigClassName='家装课堂' order by ID desc"
rs.Open sql,Conn,1,1
if rs.eof and rs.bof then
  response.Write("暂时没有记录")
else
%>
                <%
rs.PageSize=15 
for j=1 to rs.PageSize
ViewList=3
%>
  <td width="33%">
   <table width="100%"  border="0" align="center" cellpadding="3" cellspacing="0">
             <tr>
                 <td width="5%" height="27">&nbsp;</td>
                 <td width="5%" valign="middle" style="border-bottom:1px dotted #9b7022;"><img src="images/a.gif" width="9" height="9"/></td>
                   <td width="85%" align="left" valign="middle" style="border-bottom:1px dotted #9b7022;"><div align="left" style="margin-left:5px;"><a href="shownews.asp?id=<%= RS("id") %>&BigClass=<%=RS("BigClassName")%>" target="_blank" title="<%= RS("TITLE") %>"><%=cutstr (rs("title"),15)%></a></div></td>
                    <td width="5%">&nbsp;</td>
    </tr>                      
         </table>
<%
if j mod ViewList =0 then
response.Write"</td></tr>"
else
response.Write"&


相关文档:

asp 中 mid函数的用法


从字符串中返回指定数目的字符。
Mid(string, start, length)
参数
string
字符串表达式,从中返回字符。如果 string 包含 Null,则返回 Null。
Start
string 中被提取的字符部分的开始位置。如果 start 超过了 string 中字符的数目,Mid 将返回零长度字符串 ("")。
Length
要返回的字符数。如果省 ......

如何在asp中设置302和301跳转


常用的重定向方式有: 301 redirect, 302 redirect 与 meta fresh:
ASP 中,我们习惯使用 Response.Redirdect 来实现页面的跳转,但是这种跳转方式的状态是 302 的,属于临时跳转,对于搜索引擎来说,是一种不友好的重定向方式。
ASP 3.0 中,有了另一种方式,即 Response.Transfer 。关于这个,可以查询相关的信息。
......

一个ASP替换函数img里面多余的代码

一个ASP替换函数img里面多余的代码
 
<%
Response.Write(Server.HTMLEncode(FixImg("<img onclick=""if(this.width>screen.width-461) window.open('qq/20082181405371.jpg');"" alt="""" border=""0"" src=""qq/20082181405371.jpg"" />")))
%>
<%
'功能:将IMG代码格式化为<img src= ......

ASP与ActiveX控件交互实战

ActiveX控件运行在客户端。我们可以获得客户端的一些信息,如IC卡的信息,客户端的验证等等。但是ActiveX控件也有许多缺点:客户端的部署很困难,如客户端不能正确下载,下载了以后不能正确执行,下载的时候需要设置IE的安全级别等等。
更多的时候,我都在使用COM组件来扩展ASP的功能。准确地说,是服务端运行的Activex Dll ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号