易截截图软件、单文件、免安装、纯绿色、仅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


相关文档:

实例学习Dreamweaver MX ASP编程基础2

按“F12”试试效果。
  注:常用的时间函数:
now()                    获取当前系统日期和时间,ASP输出可以这样写:<%=now()%>
Year(now())         获取年份 ......

ASP和HTML表单 (ASP and HTML Forms)

在 ASP 中,有两个很常用的集合,一个是 Request.QueryString,另一个是 Request.Form。这两个集合可以获取 HTML 表单(HTML Forms) 提交的信息。
有关 HTML 表单,请参见 HTML 教程中的 HTML表单 一章。
Request.QueryString
HTML 表单中的 method 有两种,一种是 get,另外一种是 post。当 HTML 表单的 metho ......

C#实现象ASP中的数据添加

我想用C#实现象ASP中的
rs.addnew
rs( "a ")   =   "aaa "
rs( "b ")   =   123
rs.update
这样方法添加数据,问一下,要怎么做啊?
具体方法如下
              string   dbPath   =   "../App_data/We ......

asp 树,c# 查找 指定节点

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace W ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号