如何在我的Asp.Net项目中找到另存为对话框 [英] How Can I Find A Save As Dialog Box In My Asp.Net Project

查看:71
本文介绍了如何在我的Asp.Net项目中找到另存为对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

When I am create a xml file from my project then I want to appear a SAVE AS dialog box for save the file to a location . But I didnot got any idea how can i find a Save As dialog box.Please give me a suggestion how can I find it.

推荐答案

你好,

参考:在ASP.NET中使用另存为对话框下载文件

谢谢
Hello ,
Refer : Downloading a File with a Save As Dialog in ASP.NET
thanks


如果xmlDocument是您的XML文档对象,则使用



If xmlDocument is your XML document object, then use

Response.ContentType = "text/xml";
Response.ContentEncoding = System.Text.Encoding.UTF8;
xmlDocument.Save(Response.Output);


这篇关于如何在我的Asp.Net项目中找到另存为对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆