我生成一个vcard,我发送到客户端使用以下代码片段:
response.addheader("Content-disposition",string.Format("attachment; filename={0}",fileNameOnly)); Response.ContentType = "text/x-vcard"; Response.ContentEncoding = Encoding.GetEncoding("ISO-8859-1"); Response.Write(vCard.ToString()); Response.End();
但是,我需要在一个内部控制页面和UpdatePanel中使用vCard.不幸的是,根据Update panel and Response write这不行,导致错误.
我想知道有什么办法可以将vcard / file的内容发送到客户端的浏览器,并显示不包含Response.Write的“打开/保存”对话框?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。