zoukankan      html  css  js  c++  java
  • Server对象的Execute方法

    Server 对象是专门为处理服务器上的特定任务而设计的,它提供了对服务器上的方法和属性的访问,通过调用这些方法和属性的设置,可以允许用户使用服务器上的许多功能,如可以取得服务器运行环境的功能,但最重要的功能还是可以让 用户 使用服务器中的AtiveX 组件。

    执行指定的 ASP 程序----Server.Execute 方法<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

    语法:Server.Execute(path)

    用途:这个方法是 IIS5.0 新增的功能,用途类似程序语言中的函数调用,也就是说,您可以在 ASP 程序中使用 Server.Execute(path)方法调用 Path 指定的 ASP 程序,待被调用的程序执行完毕之后再返回原来的程序,继续执行接下来的指令。

    请看下面的一段程序:

    <html>

    <head></head>

    <body>

    <p><%Response.write "调用 Execute 方法之前"%></p>

     <%Server.Execute("page2.asp")%>

     

     '执行 page2.asp 后会再返回

     <p><%Response.write "调用 Execute 方法之后"%></p>

    </body>

    </html>

    另一个程序

    <html>

    <head></head>

    <body>

    <p><%Response.write "这是 page2.asp 执行结果"%></p>

    </body>

    </html>

     

    注:

    由于 Server.Execute 方法具有函数调用功能,我们可以利用这个功能编写可以重复执

    行的代码片段,然后调用即可。

  • 相关阅读:
    *Convert Sorted Array to Binary Search Tree
    *Count Complete Tree Nodes
    *Binary Tree Paths
    Invert Binary Tree
    *Kth Smallest Element in a BST
    **Lowest Common Ancestor of Two Nodes in a Binary Tree
    Lowest Common Ancestor of a Binary Search Tree
    *Sum root to leaf number
    subversion javahl
    mongodb从来没有说它写成功了。
  • 原文地址:https://www.cnblogs.com/dyllove98/p/3165665.html
Copyright © 2011-2022 走看看