当采用post就用Request.form,否则当采用get时就采用Request.querystring,执行效率Get却比Post方法好 ----------------------------------- 要产生指定范围的随机整数,请使用以下公式: Int((upperbound - lowerbound + 1) * Rnd + lowerbound) 这里, upperbound 是此范围的上界,而 lowerbound 是此范围内的下界 ----------------------------------- Response.end 和 Response.clear clear方法和end方法似相反,end是到此结束返回上面的结果,而clear却是清除上面的执行(该方法只清除响应正文而不清除响应标题),然后只返回下面的结果 ----------------------------------- Response.redirect Redirect 方法是让浏览器立即重定向到程序指定的URL地址。这在根据客户的不同响应,为不同的客户指定不同的页面,或根据不同的情况指定不同的页面时,显得非常重要 ----------------------------------- ----------------------------------- 用省略号格式化数据标题 <% function conleft(content,i) if len(content)>i then content=left(content,i) response.write (content&"...") else response.write (content) end if end function %> 以上为函数,下面就可以直接调用。 <%call conleft(rs("content"),10)%> ----------------------------------- 而我们在一般情况下使用Access的数据库比较多,在这里我建议大家连接Access数据库使用下面的方法: set conn=server.CreateObject("adodb.connection") DBPath = Server.MapPath("./20year.mdb") conn.open "provider=microsoft.jet.oledb.4.0; data source="&DBpath sql= "insert into chinfo (chName, chTel, chChs, chDate) Values ('"& Request.Form("chName") &"','"& Request.Form("chTel") &"','"& Request.Form("chChs") &"','"& now() &"')" conn.execute (sql) conn.close set conn=Nothing -----------------------------------