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

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

          <bdo id='HTl3r'></bdo><ul id='HTl3r'></ul>
        <tfoot id='HTl3r'></tfoot>

        在 Asp.net 网页中显示保存文件对话框

        Displaying Save File Dialog in Asp.net web page(在 Asp.net 网页中显示保存文件对话框)
        • <bdo id='bdeEs'></bdo><ul id='bdeEs'></ul>

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

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

                  本文介绍了在 Asp.net 网页中显示保存文件对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个将文件写入本地磁盘的 ASP.net 页面.

                  I have a ASP.net page which writes a file to the local disk.

                  我想向用户显示一个保存文件对话框并允许他设置文件夹的路径.

                  I want to present the user a Save File dialog box and allow him to set the path to the folder.

                  我知道可以使用下面的代码;

                  I know code like below can be used;

                  Response.Clear();
                  Response.ContentType = "text/csv";
                  Response.AddHeader( "Content-Disposition", "attachment;filename="report.csv"" );
                  // write your CSV data to Response.OutputStream here
                  Response.End();
                  

                  但它修复了文件路径.

                  我需要捕获用户选择的文件路径.这在 ASP.net 中可行吗?

                  I need to capture the filepath that the user selects. Is that possible in ASP.net?

                  谢谢.

                  推荐答案

                  它不像网页那样工作,你必须启动下载 suggestiong 一个目标文件名,然后用户可以覆盖您建议的文件名并选择他喜欢的任何文件夹或文件名,您的内容将保存在该位置.

                  it does not work like that from a web page, you have to initiate the download suggestiong a target file name then the user can override your suggested file name and select any folder or filename he likes and your content will be saved in that location.

                  您对仅在 ASP.NET 应用程序服务器端的客户端计算机上有意义的本地路径不做任何事情.

                  you do nothing with a local path which only makes sense on the client machine on the server side of ASP.NET application.

                  这篇关于在 Asp.net 网页中显示保存文件对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  FileSystemWatcher and windows 7(FileSystemWatcher 和 Windows 7)
                  ClickOnce application does not start through Process.Start(quot;x.abcquot;) with *.abc associated to the ClickOnce application(ClickOnce 应用程序不通过 Process.Start(“x.abc) 启动,其中 *.abc 与 ClickOnce 应用程序关联) - IT屋-程序员软件开发
                  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?(论坛标签.实施它们的最佳方法是什么?)
                  <i id='cmEYt'><tr id='cmEYt'><dt id='cmEYt'><q id='cmEYt'><span id='cmEYt'><b id='cmEYt'><form id='cmEYt'><ins id='cmEYt'></ins><ul id='cmEYt'></ul><sub id='cmEYt'></sub></form><legend id='cmEYt'></legend><bdo id='cmEYt'><pre id='cmEYt'><center id='cmEYt'></center></pre></bdo></b><th id='cmEYt'></th></span></q></dt></tr></i><div id='cmEYt'><tfoot id='cmEYt'></tfoot><dl id='cmEYt'><fieldset id='cmEYt'></fieldset></dl></div>
                    <legend id='cmEYt'><style id='cmEYt'><dir id='cmEYt'><q id='cmEYt'></q></dir></style></legend>
                        <tbody id='cmEYt'></tbody>

                        • <bdo id='cmEYt'></bdo><ul id='cmEYt'></ul>

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

                          2. <tfoot id='cmEYt'></tfoot>