⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asp入门_程序开发.htm

📁 asp 学习电子书电子书 asp 学习电子书电子书
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0055)http://bbs.zol.com.cn/index20060422/index_27_27401.html -->
<HTML><HEAD><TITLE>ASP入门_程序开发</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=ASP入门 name=Keywords>
<META 
content="ASP入门一.VBScript语法简介 VBScript语句是一种基于VB的一种脚本语言,主要用于WEB服务器端的程序开发,我们 这里只介绍一些简单的语句,主要是操作数据库的几种常见的语句 <1>.vbscript的标识 <% 语句 ……" 
name=Description><LINK href="ASP入门_程序开发.files/detail2.css" rel=stylesheet>
<SCRIPT language=JavaScript id=hexun_bookmark src=""></SCRIPT>

<SCRIPT language=JavaScript src="ASP入门_程序开发.files/detail.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=JavaScript>
    <!--
	//查看隐身人
	function viewnl(nl_type,bookid){
		if(nl_type=='new') bookid='27401';
		if(confirm('是否确定使用“照妖镜”来查看该隐身人身份?')){
			window.open('http://v1.bbs.zol.com.cn/cimelia/view_nameless.php?nl_type='+nl_type+'&boardID=27&bookID='+bookid);
		}
	}

	//宝物应用
	function apply_cimelia(boardid,bookid,ctype,cname){
		if(confirm('是否确定使用宝物:'+cname+'?')){
			location.href='/new/setbook2.php?bookid='+bookid+'&boardid='+boardid+'&ctype='+ctype+'&type=cimelia_apply';
		}
	}

    function showHightFun(tag){
        var s='none';
        if(tag){
            s='';
        }
        document.getElementById('hight_fun_table').style.display=s;
    }
	function showItemstr(tag){
        var s='none';
        if(tag){
            s='';
        }
        document.getElementById('item_str').style.display=s;
    }
    //-->
    </SCRIPT>

<STYLE type=text/css>BODY {
	BACKGROUND-COLOR: #547ab9
}
</STYLE>

<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV align=center>
<DIV 
style="PADDING-BOTTOM: 5px; WIDTH: 770px; PADDING-TOP: 5px; BACKGROUND-COLOR: #ffffff">
<TABLE cellSpacing=0 cellPadding=0 width=760 bgColor=#547ab9 border=0>
  <TBODY>
  <TR>
    <TD style="PADDING-LEFT: 10px; COLOR: #ffffff" align=left height=22><A 
      style="COLOR: #ffffff" href="http://www.zol.com.cn/">ZOL首页</A> | <A 
      style="COLOR: #ffffff" href="http://bbs.zol.com.cn/">论坛首页</A> | <A 
      style="COLOR: #ffffff" 
      href="http://v1.bbs.zol.com.cn/frmView.php">论坛树型导航页</A> | <!--<a href="#" target="_blank" style="COLOR: #ffffff">Blog博客</a> | --><A 
      style="COLOR: #ffffff" href="http://play.zol.com.cn/">休闲游戏 </A>| <A 
      style="COLOR: #ffffff" href="http://service.zol.com.cn/auction/">拍卖</A> | 
      <A style="COLOR: #ffffff" 
      href="http://bbs.zol.com.cn/help/help.htm">新手入门</A> 
</TD></TR></TBODY></TABLE><SPAN id=ol_stat title=qushise76090></SPAN><SPAN 
id=ol_stat title=qushisol76090></SPAN><SPAN id=ol_stat 
title=motodown76060></SPAN><SPAN id=ol_stat title=motochannel76060></SPAN><SPAN 
id=ol_stat title=motomob50060></SPAN><SPAN id=ol_stat 
title=motohome120300></SPAN><SPAN id=ol_stat title=100emob></SPAN>
<DIV align=center>
<OBJECT height=60 width=760 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="SRC" VALUE="http://pic.zol.com.cn/2006/dellsev76060.swf"></OBJECT></DIV>
<TABLE cellSpacing=0 cellPadding=0 width=760 border=0>
  <TBODY>
  <TR>
    <TD background=ASP入门_程序开发.files/71.jpg height=29>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD style="PADDING-LEFT: 10px" width=180><A 
            href="http://bbs.zol.com.cn/"><IMG alt=bbs.zol.com.cn 
            src="ASP入门_程序开发.files/180.gif" border=0></A></TD>
          <TD style="COLOR: #248ecc" width=370><A 
            href="http://bbs.zol.com.cn/">中关村在线论坛</A> - <A 
            href="http://v1.bbs.zol.com.cn/frmView.php?searchid=127">程序开发</A> - 
            &nbsp;点击数:<SPAN id=book_hit_num></SPAN>&nbsp; <SPAN 
            id=msg_zone></SPAN></TD>
          <TD onmouseover="document.all.border_fun_div.style.display='';" 
          style="COLOR: #248ecc" 
          onmouseout="document.all.border_fun_div.style.display='none';" 
          align=right width=65>[<SPAN style="COLOR: #248ecc">版主功能</SPAN>] </TD>
          <TD style="PADDING-RIGHT: 10px; COLOR: #248ecc" align=right>[<A 
            href="http://v1.bbs.zol.com.cn/bbs_search/list.php">搜索</A>] [<A 
            href="http://bbs.zol.com.cn/new/insert_fav.php?book_id=27401&amp;board_id=27&amp;title=ASP入门">收藏</A>] 
            [<A 
            href="http://bbs.zol.com.cn/new/giveScore.php?board_id=27&amp;nId=27401">结帖</A>] 
          </TD></TR>
        <TR>
          <TD></TD>
          <TD></TD>
          <TD onmouseover="document.all.border_fun_div.style.display='';" 
          onmouseout="document.all.border_fun_div.style.display='none';">
            <DIV id=border_fun_div 
            style="BORDER-RIGHT: #40cefd 1px solid; BORDER-TOP: #40cefd 1px solid; MARGIN-TOP: 0px; DISPLAY: none; MARGIN-LEFT: 0px; BORDER-LEFT: #40cefd 1px solid; WIDTH: 75px; BORDER-BOTTOM: #40cefd 1px solid; POSITION: absolute">
            <TABLE width=70 align=center bgColor=#ffffff>
              <TBODY>
              <TR>
                <TD style="BORDER-BOTTOM: gray 1px dotted"><A 
                  href="http://bbs.zol.com.cn/new/setGood.php?boardid=27&amp;bookid=27401">版主加精</A></TD></TR>
              <TR>
                <TD style="BORDER-BOTTOM: gray 1px dotted"><A 
                  href="http://bbs.zol.com.cn/new/setbook2.php?bookid=27401&amp;boardid=27&amp;type=upone">版主置顶</A></TD></TR>
              <TR>
                <TD style="BORDER-BOTTOM: gray 1px dotted"><A 
                  href="http://bbs.zol.com.cn/new/setbook2.php?bookid=27401&amp;boardid=27&amp;type=cancleupone">取消置顶</A></TD></TR>
              <TR>
                <TD><A 
                  href="http://bbs.zol.com.cn/new/tips/board_change.php?bookid=27401&amp;boardid=27">帖子转移</A></TD></TR></TBODY></TABLE></DIV></TD>
          <TD></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="MARGIN-TOP: 10px" width=760>
  <TBODY>
  <TR>
    <TD align=middle>
      <H1>ASP入门</H1></TD>
    <TD width=80><A 
      href="http://v1.bbs.zol.com.cn/frmView.php?u2=http://bbs.zol.com.cn/new/fb.php?nId=27"><IMG 
      alt=发帖 src="ASP入门_程序开发.files/80.gif" border=0></A></TD></TR></TBODY></TABLE>
<TABLE 
style="BORDER-RIGHT: #40cefd 1px solid; BORDER-TOP: #40cefd 1px solid; MARGIN: 4px; BORDER-LEFT: #40cefd 1px solid; BORDER-BOTTOM: #40cefd 1px solid" 
cellSpacing=0 cellPadding=0 width=760>
  <TBODY>
  <TR>
    <TD align=left><SPAN id=page_bar_top></SPAN></TD></TR></TBODY></TABLE><!--楼层start-->
<TABLE 
style="BORDER-RIGHT: #40cefd 1px solid; BORDER-TOP: #40cefd 1px solid; MARGIN-TOP: 2px; BORDER-LEFT: #40cefd 1px solid; BORDER-BOTTOM: #40cefd 1px solid" 
cellSpacing=0 cellPadding=0 width=760>
  <TBODY>
  <TR bgColor=#248ecc>
    <TD style="PADDING-LEFT: 10px; COLOR: #ffffff" height=20><A 
      name=top0></A>楼层:楼主 时间:2006-04-22 11:42:18 </TD>
    <TD style="COLOR: #ffffff" align=right>[<A style="COLOR: #ffffff" 
      href='javascript:apply_cimelia("27","27401","qq","气球");'>气球</A>] [<A 
      style="COLOR: #ffffff" 
      href="javascript:add_hexun();">加到网摘</A>]&nbsp;&nbsp; 分数:200&nbsp;</TD></TR><!--楼层end-->
  <TR>
    <TD colSpan=2>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD style="BORDER-RIGHT: #40cefd 1px solid; BACKGROUND-COLOR: #ddf2ff" 
          vAlign=top align=middle width=140>
            <TABLE style="MARGIN: 5px" width="100%">
              <TBODY>
              <TR>
                <TD align=middle><A class=a_css1b 
                  href="http://v1.bbs.zol.com.cn/zoler/index.php?userid=jiayuqiang" 
                  target=_blank>★冷酷无情★<A></A></TD></TR>
              <TR>
                <TD 
                style="BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #000000 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; BORDER-LEFT: #000000 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #000000 1px solid" 
                align=middle><A 
                  href="http://v1.bbs.zol.com.cn/zoler/index.php?userid=jiayuqiang" 
                  target=_blank><IMG alt="" src="ASP入门_程序开发.files/head_53.gif" 
                  border=0><BR><IMG alt="" src="ASP入门_程序开发.files/lv4601.gif" 
                  border=0></A></TD></TR>
              <TR>
                <TD align=middle>
                  <TABLE cellSpacing=1 cellPadding=0 width="95%" border=0>
                    <TBODY>
                    <TR>
                      <TD style="COLOR: #333333">探花</TD></TR>
                    <TR>
                      <TD style="COLOR: #333333">能力值:129</TD></TR>
                    <TR>
                      <TD>[<A style="COLOR: #333333" 
                        href="http://v1.bbs.zol.com.cn/View_2.php?searchtype=userid&amp;searchid=127&amp;searchKeys=jiayuqiang" 
                        target=_blank>我的文章</A>]</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
          <TD align=left width=630>
            <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" 
            border=0>
              <TBODY>
              <TR>
                <TD 
                style="PADDING-LEFT: 5px; FONT: 14px normal 宋体; PADDING-TOP: 10px" 
                vAlign=top align=left colSpan=2 height=185><STRONG><SPAN 
                  class=tpc_title>ASP入门</SPAN><BR><!----><BR></STRONG><SPAN 
                  class=tpc_content><FONT size=2>一.VBScript语法简介 
                  <BR>VBScript语句是一种基于VB的一种脚本语言,主要用于WEB服务器端的程序开发,我们 
                  <BR>这里只介绍一些简单的语句,主要是操作数据库的几种常见的语句 <BR>&lt;1&gt;.vbscript的标识 
                  <BR>&lt;% <BR>语句 <BR>…… <BR>%&gt; <BR>&lt;2&gt;定义变量dim语句 
                  <BR>&lt;% <BR>dim a,b <BR>a=10 <BR>b=”ok!” <BR>%&gt; 
                  <BR>注意:定义的变量可以是数值型,也可以是字符或者其他类型的 <BR>&lt;3&gt;简单的控制流程语句 <BR>1. 
                  If 条件1 then <BR>语句1 <BR>elseif 条件2 then <BR>语句2 <BR>else 
                  <BR>语句3 <BR>endif <BR>2.while 条件 <BR>语句 <BR>wend <BR>3.for 
                  count=1 to n step m <BR>语句1 <BR>exit for <BR>语句2 <BR>next 
                  <BR>二.ASP数据库简单操作教程 <BR>&lt;1&gt;.数据库连接(用来单独编制连接文件conn.asp) 
                  <BR>&lt;% <BR>Set conn = 
                  Server.CreateObject("ADODB.Connection") <BR>conn.Open 
                  "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &amp; 
                  Server.MapPath("\bbs\db1\user.mdb") <BR>%&gt; 
                  <BR>(用来连接bbs\db1\目录下的user.mdb数据库) <BR>&lt;2&gt;显示数据库记录 
                  <BR>原理:将数据库中的记录一一显示到客户端浏览器,依次读出数据库中的每一条记录 
                  <BR>如果是从头到尾:用循环并判断指针是否到末 使用: not rs.eof 
                  <BR>如果是从尾到头:用循环并判断指针是否到开始 使用:not rs.bof 
                  <BR><BR>&lt;!--#include file=conn.asp--&gt; 
                  (包含conn.asp用来打开bbs\db1\目录下的user.mdb数据库) <BR>&lt;% <BR>set 
                  rs=server.CreateObject("adodb.recordset") (建立recordset对象) 
                  <BR>sqlstr="select * from message" 
                  ----&gt;(message为数据库中的一个数据表,即你要显示的数据所存放的数据表) <BR>rs.open 
                  sqlstr,conn,1,3 ----&gt;(表示打开数据库的方式) <BR>rs.movefirst 
                  ----&gt;(将指针移到第一条记录) <BR>while not rs.eof ----&gt;(判断指针是否到末尾) 
                  <BR>response.write(rs("name")) ----&gt;(显示数据表message中的name字段) 
                  <BR>rs.movenext ----&gt;(将指针移动到下一条记录) <BR>wend ----&gt;(循环结束) 
                  <BR>------------------------------------------------------ 
                  <BR>rs.close <BR>conn.close 这几句是用来关闭数据库 <BR>set rs=nothing 
                  <BR>set conn=nothing 
                  <BR>------------------------------------------------------- 
                  <BR>%&gt; <BR>其中response对象是服务器向客户端浏览器发送的信息 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -