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

📄 基于asp的编程常见问题.htm

📁 较为详细的介绍了asp自定义的各种函数,方便asp的各种开发.
💻 HTM
📖 第 1 页 / 共 3 页
字号:
      <P><B>D. 无法向SQL 
      SERVER插入日期字段</B><BR><BR>  如果遇到必须使用美国日期格式插入日期的情况,则需要在服务器的区域设置上设置中国长日期格式,请特别注意,ASP是在服务器上运行的,生成的HTML结果传递给浏览器,所以,所有格式设置必须在服务器上。</P>
      <P><B>E. 
      如何向客户机推送提示信息</B><BR><BR>  如果在服务器上判断访问错误,如注册失败、无权操作记录等需要提示用户的信息。这个信息需要推送到客户机上,并出现提示窗口,这是经常遇到的问题。这个时候,必须使用动态页面的方式,因为错误是在服务器上判断的,而提示是在浏览器上出现的。我们 
      可以使用下面的ASP来推送错误:<BR>on error resume 
      next<BR>conn=server.createobject("adodb.connection")<BR>conn.open 
      "pubs","wlf",""<BR>'如果注册失败则错误数大于0<BR>if conn.errors.count? 
      then<BR>‘以下代码生成客户机上的脚本语言,提供给浏览器执行<BR>response.write "&lt;script 
      language=javascript&gt;" &amp; chr(13)<BR>response.write "{" &amp; 
      chr(13)<BR>response.write " window.alert("您无权访问数据库!")" &amp; 
      chr(13)<BR>response.write "}" &amp; chr(13)<BR>response.write "&lt;/script 
      &gt;" &amp; chr(13)<BR>end if</P>
      <P><B>F. 客户机尽量使用固定IP地址</B><BR><BR>   
      由于ASP连接数据库是定时的,默认是:<BR>Session("Customers_ConnectionTimeout") = 
      15<BR>Session("Customers_CommandTimeout") = 
      30<BR>两个设置决定的时间,超时后自动断开连接,所以,当刷新页面重新执行ASP代码时,如果IP分配时间不够(动态IP分配需要时间,比静态长很多!),可能无法连接上,则出现错误信息,所以尽量用静态IP地址。</P>
      <P>总结</P>
      <P>  使用ASP编程是很方便的。由于ADO跨越了ODBC,形成具备多线程处理能力的数据库操作方式,并且是在服务器上运行,虽然增加了服务器的压力,好在现在的服务器(哪怕是PC服务器)处理能力都非常强,这样反而发挥了服务器的效率。另外,由于ASP可以和ActiveX控件进行良好的接口,也使开发者容易根据自己的需要扩充程序,并直接建立在ASP编程环境上,唯一需要注意的是,一定要以Internet/Intranet的思路设计和编写程序,否则将事倍功半。 
      <BR><BR>
      <P align=right><A 
      href="http://www.163.com/news/p-content/0,1585,724,00.html">更多精彩文章尽在:ASP编程指南 
      </A><!-- Vignette StoryServer 4 Tue Aug 15 17:42:01 2000 -->
      <SCRIPT language=JavaScript>function recommendNew(){	OpenWindow = window.open('http://talkshow.163.com/recommend.php?referer='+parent.location,'recWin','toolbar=no,scrollbars=no,menubar=no,width=470,height=470')}</SCRIPT>

      <P><A href="javascript:recommendNew()">请点此将本文推荐给你的好友!</A></P></TD></TR>
  <TR>
    <TD class=p2><A href="mailto:it@staff.163.com?subject=基于ASP的编程常见问题"><FONT 
      color=red>有话要说?请给我们来信!</FONT></A> </TD></TR>
  <TR>
    <TD align=right></TD></TR>
  <TR>
    <TD align=middle bgColor=#f2f2f2 class=p4 colSpan=2 
    width=591><B>相关文章</B></TD></TR>
  <P>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A 
        href="http://www6.163.com/it/item/0,2186,5725,00.html">ASP组件中的安全问题</A> 
        </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A 
        href="http://www6.163.com/it/item/0,2186,5724,00.html">用ASP实现网站的“目录树”管理</A> 
        </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A 
        href="http://www6.163.com/it/item/0,2186,5607,00.html">用ASP实现网页BBS</A> 
        </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A 
        href="http://www6.163.com/it/item/0,2186,5569,00.html">ASP:读取通过表单发送的数据</A> 
        </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A 
        href="http://www6.163.com/it/item/0,2186,4989,00.html">通过ASP处理表单</A> 
        </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A href="http://www6.163.com/it/item/0,2186,3277,00.html">ASP:Hack 
        &amp; Anti-Hack</A> </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A href="http://www6.163.com/it/item/0,2186,3090,00.html">ASP: 
        浏览器中上载文件的方法与实现</A> </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A 
        href="http://www6.163.com/it/item/0,2186,2879,00.html">ASP个人上手指南</A> 
        </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A 
        href="http://www6.163.com/it/item/0,2186,2665,00.html">ASP:网上通讯簿1.00</A> 
        </LI></UL>
  <TR>
    <TD class=p2 vAlign=top width=591>
      <UL>
        <LI><A 
        href="http://www6.163.com/it/item/0,2186,2555,00.html">asp对于数据可操作</A></LI></UL></P></TBODY></TABLE>
<TABLE align=left border=0 cellPadding=0 cellSpacing=0 height=400 width=8>
  <TBODY>
  <TR>
    <TD></TR></TBODY></TABLE><!-- Vignette StoryServer 4 Mon Nov 20 09:36:25 2000 -->
<TABLE align=left border=0 cellPadding=0 cellSpacing=0 width=150>
  <TBODY>
  <TR>
    <TD>
      <TABLE border=0 cellPadding=0 cellSpacing=2 width=150>
        <TBODY>
        <TR>
          <TD align=middle class=p3 height=20><A href="http://www.163.com/it" 
            onclick="window.external.addFavorite('http://www.163.com/it','网易IT频道');return false" 
            title=网易IT频道><FONT 
    color=red>把本频道加入书签!</FONT></A></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD bgColor=#4274de>
      <TABLE border=0 cellPadding=0 cellSpacing=1 width="100%">
        <TBODY>
        <TR>
          <TD>
            <TABLE bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 
            width="100%"><!--Begin the system software-->
              <TBODY>
              <TR>
                <TD align=middle bgColor=#4274de class=p4 colSpan=2><A 
                  href="http://www6.163.com/it/category/0,2197,1,00.html"><FONT 
                  color=#ffffff>IT瞭望</FONT></A></TD></TR>
              <TR>
                <TD bgColor=#000000 colSpan=2><SPACER height="1" 
                type="block"></TD></TR>
              <TR>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,4,00.html"><FONT 
                  color=#000000>业界动态</FONT></A> </TD>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,5,00.html"><FONT 
                  color=#000000>观点评论</FONT></A> </TD></TR>
              <TR>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,6,00.html"><FONT 
                  color=#000000>数字生活</FONT></A> </TD>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,26,00.html"><FONT 
                  color=#000000>深度报道</FONT></A> </TD></TR>
              <TR>
                <TD align=middle bgColor=#4274de class=p4 colSpan=2><A 
                  href="http://www6.163.com/it/category/0,2197,2,00.html"><FONT 
                  color=#ffffff>硬件天地</FONT></A></TD></TR>
              <TR>
                <TD bgColor=#000000 colSpan=2><SPACER height="1" 
                type="block"></TD></TR>
              <TR>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,9,00.html"><FONT 
                  color=#000000>应用大全</FONT></A> </TD>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,10,00.html"><FONT 
                  color=#000000>硬件技术</FONT></A> </TD></TR>
              <TR>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,15,00.html"><FONT 
                  color=#000000>行情报价</FONT></A> </TD>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,25,00.html"><FONT 
                  color=#000000>评测推介</FONT></A> </TD></TR>
              <TR>
                <TD align=middle bgColor=#4274de class=p4 colSpan=2><A 
                  href="http://www6.163.com/it/category/0,2197,3,00.html"><FONT 
                  color=#ffffff>软件时空</FONT></A></TD></TR>
              <TR>
                <TD bgColor=#000000 colSpan=2><SPACER height="1" 
                type="block"></TD></TR>
              <TR>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,11,00.html"><FONT 
                  color=#000000>自由天地</FONT></A> </TD>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,13,00.html"><FONT 
                  color=#000000>使用技巧</FONT></A> </TD></TR>
              <TR>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,14,00.html"><FONT 
                  color=#000000>编程指南</FONT></A> </TD>
                <TD align=middle class=p2 width="50%"><A 
                  href="http://www6.163.com/it/subcategory/0,2200,16,00.html"><FONT 
                  color=#000000>产品情报</FONT></A> </TD></TR>
              <TR>
                <TD align=middle bgColor=#4274de class=p4 colSpan=2><A 
                  href="http://www.163.com/software"><FONT 
                  color=#ffffff>软件下载</FONT></A></TD></TR>
              <TR>
                <TD bgColor=#000000 colSpan=2><SPACER height="1" 
                type="block"></TD></TR>

⌨️ 快捷键说明

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