asp .net显示下载对话框,用于在项目文件的不同位置下载filename.bak文件 [英] asp .net show download dialog box for downloading filename.bak file in different location with project files
本文介绍了asp .net显示下载对话框,用于在项目文件的不同位置下载filename.bak文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Asp.net显示下载对话框,用于在与项目文件不同的位置下载filename.bak文件.
例如
我的项目在D:\Prj\
中,.bak文件在D:\backUpDB
中
如果.bak文件位于项目的路径中,我可以编写
Asp.net show download dialog box for downloading filename.bak file in different location with project files.
For example
My project is in D:\Prj\
and the .bak file is in D:\backUpDB
If a .bak file is in the path of project I can write
Response.Redirect("../../BackupRoot/securitydb/Db.bak", False)
如何编写这样的代码?
(我的文件是* .bak文件)
How can I write some code like this?
(My file is a *.bak file)
推荐答案
您可以编写
Response.Redirect("../backupDB/Db.bak", False)
这篇关于asp .net显示下载对话框,用于在项目文件的不同位置下载filename.bak文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文