<small id='DdHva'></small><noframes id='DdHva'>

  1. <tfoot id='DdHva'></tfoot>
  2. <legend id='DdHva'><style id='DdHva'><dir id='DdHva'><q id='DdHva'></q></dir></style></legend>
    1. <i id='DdHva'><tr id='DdHva'><dt id='DdHva'><q id='DdHva'><span id='DdHva'><b id='DdHva'><form id='DdHva'><ins id='DdHva'></ins><ul id='DdHva'></ul><sub id='DdHva'></sub></form><legend id='DdHva'></legend><bdo id='DdHva'><pre id='DdHva'><center id='DdHva'></center></pre></bdo></b><th id='DdHva'></th></span></q></dt></tr></i><div id='DdHva'><tfoot id='DdHva'></tfoot><dl id='DdHva'><fieldset id='DdHva'></fieldset></dl></div>
        <bdo id='DdHva'></bdo><ul id='DdHva'></ul>
    2. 如何在 aspx 页面中包含 adovbs.inc 文件?

      How to include adovbs.inc file in an aspx page?(如何在 aspx 页面中包含 adovbs.inc 文件?)
        <tbody id='OVGFz'></tbody>

      <legend id='OVGFz'><style id='OVGFz'><dir id='OVGFz'><q id='OVGFz'></q></dir></style></legend>
        <bdo id='OVGFz'></bdo><ul id='OVGFz'></ul>

      • <tfoot id='OVGFz'></tfoot>

              1. <small id='OVGFz'></small><noframes id='OVGFz'>

                <i id='OVGFz'><tr id='OVGFz'><dt id='OVGFz'><q id='OVGFz'><span id='OVGFz'><b id='OVGFz'><form id='OVGFz'><ins id='OVGFz'></ins><ul id='OVGFz'></ul><sub id='OVGFz'></sub></form><legend id='OVGFz'></legend><bdo id='OVGFz'><pre id='OVGFz'><center id='OVGFz'></center></pre></bdo></b><th id='OVGFz'></th></span></q></dt></tr></i><div id='OVGFz'><tfoot id='OVGFz'></tfoot><dl id='OVGFz'><fieldset id='OVGFz'></fieldset></dl></div>
              2. 本文介绍了如何在 aspx 页面中包含 adovbs.inc 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在将 ASP 经典页面转换为 ASP.NET.将扩展名为 .inc 的文件包含到 aspx 页面的正确方法是什么?

                I'm converting ASP classic page to ASP.NET. What's the proper way of including files with .inc extension to aspx pages?

                <!--#include virtual = "adovbs.inc" -->
                

                我注意到,每次我将包含指向 .inc 文件的包含指令的页面之一更改为 aspx 时,我都会从这些 .inc 文件中得到各种错误.

                I've notice that each time that I change one of those pages containing the include directive pointing to .inc files to aspx, I'm getting all sort of errors from those .inc files.

                我觉得只是将那些 .inc 文件中的逻辑重写为 vb 类.

                I feel like just rewriting the logic inside those .inc files into vb classes.

                推荐答案

                adovbs.incadovbs.asp 的目的是提供命名常量值的列表来自 ADODB DLL (由于 Classic ASP 的大部分功能依赖于 VBScript 中的后期绑定).

                The purpose of adovbs.inc or adovbs.asp was to provide a list of named constant values from the ADODB DLL (due to Classic ASP relying on late binding in VBScript for most of it's functionality).

                adovbs.asp

                '--------------------------------------------------------------------
                ' Microsoft ADO
                '
                ' (c) 1996-1998 Microsoft Corporation.  All Rights Reserved.
                '
                '
                '
                ' ADO constants include file for VBScript
                '
                '--------------------------------------------------------------------
                
                '---- CursorTypeEnum Values ----
                Const adOpenForwardOnly = 0
                Const adOpenKeyset = 1
                Const adOpenDynamic = 2
                Const adOpenStatic = 3
                
                '---- CursorOptionEnum Values ----
                Const adHoldRecords = &H00000100
                Const adMovePrevious = &H00000200
                Const adAddNew = &H01000400
                Const adDelete = &H01000800
                

                直到人们意识到您可以使用 METADATA 数据标签来导入DLL 常量直接来自类型库,而不需要 adovbs 包含文件.

                This was until people realised you could use the METADATA data tag to import DLL constants direct from the Type Library instead of needing the adovbs include file.

                <!-- METADATA 
                        TYPE="typelib" 
                        UUID="00000200-0000-0010-8000-00AA006D2EA4"
                -->
                

                在 ASP.Net 中,所有内容都已编译,因此不需要这些常量文件,因为它们已经以某种形式存在于 ADO.Net 中.

                In ASP.Net everything is compiled so there is no need for these constant files as they will already exist in some form in ADO.Net.

                这篇关于如何在 aspx 页面中包含 adovbs.inc 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Open a Windows 7 Library in Windows Explorer(在 Windows 资源管理器中打开 Windows 7 库)
                What is the difference between Funclt;string,stringgt; and delegate?(Funclt;string,stringgt; 有什么区别?和委托?)
                What is the difference between lt;%: and lt;%= in ASP.NET MVC?(ASP.NET MVC 中的 lt;%: 和 lt;%= 有什么区别?)
                linq query for tag system - search for multiple tags(标签系统的 linq 查询 - 搜索多个标签)
                Forum tags. What is the best way to implement them?(论坛标签.实施它们的最佳方法是什么?)
                html script tag not using type javascript lt;script type=quot;text/htmlquot;gt;?(html 脚本标签未使用类型 javascript lt;script type=quot;text/htmlgt;gt;?)
              3. <tfoot id='E4OYP'></tfoot>

                <small id='E4OYP'></small><noframes id='E4OYP'>

                      <bdo id='E4OYP'></bdo><ul id='E4OYP'></ul>
                      <legend id='E4OYP'><style id='E4OYP'><dir id='E4OYP'><q id='E4OYP'></q></dir></style></legend>

                      <i id='E4OYP'><tr id='E4OYP'><dt id='E4OYP'><q id='E4OYP'><span id='E4OYP'><b id='E4OYP'><form id='E4OYP'><ins id='E4OYP'></ins><ul id='E4OYP'></ul><sub id='E4OYP'></sub></form><legend id='E4OYP'></legend><bdo id='E4OYP'><pre id='E4OYP'><center id='E4OYP'></center></pre></bdo></b><th id='E4OYP'></th></span></q></dt></tr></i><div id='E4OYP'><tfoot id='E4OYP'></tfoot><dl id='E4OYP'><fieldset id='E4OYP'></fieldset></dl></div>
                        <tbody id='E4OYP'></tbody>