备份 数据库问题!会的来,在线等,解决即结帖! (我连局域网服务器)我在c#程序里写了数据库备份代码?备份成功了,但是文件在服务器上而没在本地上,.bar文件字服务器上, 怎样才能备份的时候让他备份到本地计算机上呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以考虑用流的方式提供下载 /// <summary> /// 以流的方式提供下载 /// </summary> /// <param name="path">文件路径</param> protected void DownLoad(string path) { FileInfo file = new FileInfo(path); Response.Clear(); Response.ClearHeaders(); Response.Buffer = false; Response.ContentType = "application/octet-stream"; Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(file.FullName, System.Text.Encoding.UTF8)); Response.AppendHeader("Content-Length", file.Length.ToString()); Response.WriteFile(file.FullName); Response.Flush(); Response.End(); } 文件太大时不宜! 备份路径可以设为共享如 \\202.101.100.99\data\bk20070822.bak 文件太大时不宜! 备份路径可以设为共享如 \\202.101.100.99\data\bk20070822.bak------------------------------------------------------------可以吗?貌似不可以吧 备份时好像只能选择本地磁盘 网络映射的8行哦 C#正则表达式匹配问题 winform中DataGridView得问题 请教大家一个关于获取html代码的问题。。。。 winForm中的axWebBrowser,在axWebBrowser中点击连接,如何在winForm 中知道点击了那个连接。。 ssssssssfffffffffff 如何返回datagrid当前显示的数据?? C# winform绘控件 问问?GridView显示查询数据 winForm,如何让一个textBox控件只能输入固定格式的字符串? .net好象不支持oledb for odbc 关于VS2003使用的一个细节 如何编程绕过Vista下的UAC
/// 以流的方式提供下载
/// </summary>
/// <param name="path">文件路径</param>
protected void DownLoad(string path)
{
FileInfo file = new FileInfo(path);
Response.Clear();
Response.ClearHeaders();
Response.Buffer = false;
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(file.FullName, System.Text.Encoding.UTF8));
Response.AppendHeader("Content-Length", file.Length.ToString());
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();
}
备份路径可以设为共享如 \\202.101.100.99\data\bk20070822.bak
备份路径可以设为共享如 \\202.101.100.99\data\bk20070822.bak
------------------------------------------------------------可以吗?貌似不可以吧 备份时好像只能选择本地磁盘 网络映射的8行哦