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

asp操作数据库的ui

 <!--#include file="conn.asp"-->
<!--#include file="inc/head.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" xml:lang="zh-cn" lang="zh-cn" xmlns:qz="http://qzone.qq.com/">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<title>测试</title>
</head>
<body style="margin:10px;">
 <form action="" method="post">
<textarea name=sql rows=5 style="width:100%" onkeypress="if(event.keyCode==10)submit.click()"><%=request("sql")%></textarea><BR>
<input type=submit id=submit style="width:20%"  >
<input type=input name=pass style="width:75%"  value="<%=request("pass")%>">
</form>
<%
function tip(text)
 response.write(text)
end function
 
if request("sql") = "" then
   tip ("缺少sql语句<BR>")
elseif request("pass") <> "pass" then
   tip ("密码不对<BR>")
else
   dosql()
end if
sub dosql()
   dim result, startTime, lastId, ri
   startTime = now()
   set result = conn.execute(request("sql"))
   if result.State = 1 then
      while(  result.EOF = False )
  
        for ri = 0 to 999
         on error resume next
         tip ri&".&nbsp;&nbsp;"&result(ri).name & ": " & result(ri) & "<BR>"
     
         if err.number <> 0 then
           exit for
        &n


相关文档:

asp长文章分页收集存档

<%
if Request.QueryString("pageNo")="" then
PageNo=1
elseif IsNumeric(Request.QueryString("pageNo"))=false then
PageNo=1
else
PageNo=clng(Request.QueryString("pageNo"))
end if
打开数据表..不写了哈.
set rs=server.CreateObject("adodb.recordset")
sql="............"
rs.open sql, ......

asp常用的正则表达式实现字符串的替换


asp常用的正则表达式实现字符串的替换,主要包括去除html标签,去除class标签和去除script标签等
去除html标签正则<\/*[^<>]*>
Function LoseHtml(ContentStr)
Dim ClsTempLoseStr,RegEx
ClsTempLoseStr = Cstr(ContentStr)
Set RegEx = New RegExp
RegEx.Pattern = "<\/*[^<>]*>"
......

asp ,Js 设置 树的 选中状态

JS:
//获取元素指定tagName的父元素   lxh 2009 03 10
function public_GetParentByTagName(element, tagName)
{
    var parent = element.parentNode;
    var upperTagName = tagName.toUpperCase();
    while (parent && (parent.tagName.toU ......

防止SQL注入完整ASP代码

<%
Dim Fy_Url,Fy_a,Fy_x,Fy_Cs(),Fy_Cl,Fy_Ts,Fy_Zx
'---定义部份   头------
Fy_Cl = 1   '处理方式:1=提示信息,2=转向页面,3=先提示再转向
Fy_Zx = "Error.Asp" '出错时转向的页面
'---定义部份   尾------
On Error Resume Next
Fy_Url=Request.ServerVariables("QUER ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号