• <bdo id='xMR2z'></bdo><ul id='xMR2z'></ul>
  • <tfoot id='xMR2z'></tfoot>

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

    1. <legend id='xMR2z'><style id='xMR2z'><dir id='xMR2z'><q id='xMR2z'></q></dir></style></legend>
      1. <i id='xMR2z'><tr id='xMR2z'><dt id='xMR2z'><q id='xMR2z'><span id='xMR2z'><b id='xMR2z'><form id='xMR2z'><ins id='xMR2z'></ins><ul id='xMR2z'></ul><sub id='xMR2z'></sub></form><legend id='xMR2z'></legend><bdo id='xMR2z'><pre id='xMR2z'><center id='xMR2z'></center></pre></bdo></b><th id='xMR2z'></th></span></q></dt></tr></i><div id='xMR2z'><tfoot id='xMR2z'></tfoot><dl id='xMR2z'><fieldset id='xMR2z'></fieldset></dl></div>

      2. 经典 Asp 中的 ResolveUrl/Url.Content 等效项

        ResolveUrl/Url.Content Equivalent in Classic Asp(经典 Asp 中的 ResolveUrl/Url.Content 等效项)

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

              <legend id='qtZjQ'><style id='qtZjQ'><dir id='qtZjQ'><q id='qtZjQ'></q></dir></style></legend>

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

              <tfoot id='qtZjQ'></tfoot>
                  <tbody id='qtZjQ'></tbody>

                • 本文介绍了经典 Asp 中的 ResolveUrl/Url.Content 等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 webform/mvc 中,我们可以使用脚本和链接,script src=" Url.Content("~/Scripts/util.js")"

                  In webform/mvc we can use script and links as, script src=" Url.Content("~/Scripts/util.js")"

                  谁能告诉我经典asp中的等价物是什么?

                  Can anyone tell me what is the equivalent in classic asp?

                  推荐答案

                  没有直接的等价物,甚至没有直接的方法来确定应用程序的虚拟路径.以下几个 VBScript 函数应提供该功能:

                  There is no direct equivalent, there isn't even a direct way to determine the applications virtual path. The following couple of VBScript functions should provide the feature:

                  Function UrlContent(sUrl)
                      If InStr(1, sUrl, "~/") = 1 Then
                          UrlContent = ApplicationPath & Mid(sUrl, 2)
                      Else
                          UrlContent = sUrl
                      End If
                  End Function
                  
                  Function ApplicationPath()
                  
                      Dim pos: pos = Len(Request.ServerVariables("INSTANCE_META_PATH")) + 6
                  
                      ApplicationPath = Mid(Request.ServerVariables("APPL_MD_PATH"), pos)
                  
                  End Function
                  

                  这篇关于经典 Asp 中的 ResolveUrl/Url.Content 等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Problem getting list box items added through jquery in code behind(在后面的代码中通过 jquery 添加列表框项目时出现问题)
                  Selected item in list box is null(列表框中的选定项为空)
                  ASP.NET: Listbox datasource and databind(ASP.NET:列表框数据源和数据绑定)
                  ASP:ListBox Get Selected Items - One Liner?(ASP:ListBox 获取选定的项目 - 一个衬里?)
                  Maintain scroll position in listboxes in updatepanels, NOT the page(在更新面板的列表框中保持滚动位置,而不是页面)
                  Moving items in Dual Listboxes(在双列表框中移动项目)

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

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

                              <tbody id='vT3ld'></tbody>