<legend id='ne44j'><style id='ne44j'><dir id='ne44j'><q id='ne44j'></q></dir></style></legend>
  1. <small id='ne44j'></small><noframes id='ne44j'>

  2. <tfoot id='ne44j'></tfoot>
      • <bdo id='ne44j'></bdo><ul id='ne44j'></ul>

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

      单击带有 JAvascript.ASP.NET C# 的超链接时删除目录

      时间:2023-06-05

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

              <tbody id='GUan6'></tbody>
            • <bdo id='GUan6'></bdo><ul id='GUan6'></ul>
              • <tfoot id='GUan6'></tfoot>

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

                本文介绍了单击带有 JAvascript.ASP.NET C# 的超链接时删除目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                这不起作用:

                 Response.Write("<a href=view.aspx?type="+Content+"onclick="Delete('"+f+"')"> DELETE </a>");
                
                
                  <script language="javascript" type="text/javascript">
                
                        function Delete(path) {
                        path1 = unescape(path);
                        var myObject = new ActiveXObject("Scripting.FileSystemObject");
                        var myFolder = myObject.GetFolder(path1);
                
                        myFolder.Delete();
                
                        alert("Welcome");
                    }
                 </script>
                

                但这行得通.

                  Response.Write("<a href=view.aspx?type="+Content+"onclick="Delete()"> DELETE </a>");
                
                  <script language="javascript" type="text/javascript">
                
                        function Delete() {
                
                        alert("Welcome");
                    }
                 </script>
                

                我尝试使用 Delete() 的 onclick 来获得 ALERT 效果很好.但是添加参数时不起作用.请您帮帮我.请尝试很久.

                I tried with onclick for Delete() to get just ALERT it worked well. But it isn't working when add the parameters.Can you help me please.Trying for this from long time please.

                推荐答案

                首先,u 是十六进制数字的 escpae 代码.所以最好重新格式化它.

                First of all, u is escpae code for a hex digit. So better re-format it.

                其次,href=view.aspx?type=notes 也不是有效的 html 语法.请用双引号.

                Second, href=view.aspx?type=notes is not a valid html syntax too. Double quotes please.

                第三,在对它们调用任何方法之前,请输入一些代码来检查您的 javascript 变量(myObject,myFolder)是否有效(不为空).

                Third, please put some code to check if your javascript variables (myObject,myFolder) are valid (not null) before invoke any method against them.

                这篇关于单击带有 JAvascript.ASP.NET C# 的超链接时删除目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:asp.net listview 在单击时突出显示行 下一篇:运行总 C#

                相关文章

                最新文章

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

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

                  1. <tfoot id='bXn3o'></tfoot>