博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在新弹出页面下载
阅读量:6994 次
发布时间:2019-06-27

本文共 2915 字,大约阅读时间需要 9 分钟。

源代码
1 
2
3 XML配置管理 4
5
6
7
8
10
11
12
13 <%#((System.Data.DataRowView)Container.DataItem)["ACTION"]%>14
15
16
17
18
19
">下载20
21
22
23
24
25 <%#((System.Data.DataRowView)Container.DataItem)["DESCRIPTION"]%>26
27
28
29
30
31
" title="编辑">32 编辑33 34
37
38
39
40
41
42
43
44
45 46 47 名称48 49 50 查看51 52 53 描述54 55 56 操作57 58 59 60 61
当前没有查询记录62 63 64
65
66

新页面的后台

新页面后台
1     BLL.NeoSampleXmlBll bll = new BLL.NeoSampleXmlBll(); 2     protected void Page_Load(object sender, EventArgs e) 3     { 4         if (!string.IsNullOrEmpty(Request.QueryString["item"])) 5         { 6             DataTable dt = bll.GetNeoSampleXmls(Request.QueryString["item"]); 7             if (dt == null) 8             { 9                 return;10             }11             string content = dt.Rows[0]["content"].ToString();12             string action = dt.Rows[0]["action"].ToString();13             XmlDocument doc = new XmlDocument();14             doc.LoadXml(content);15             string s = doc.OuterXml; ;16             StringWriter sw = new StringWriter();17             sw.WriteLine(s);18             Response.AddHeader("content-disposition", "attchment;filename=" + action + ".xml");19             Response.ContentEncoding = Encoding.GetEncoding("gb2312");20             Response.ContentType = "application/xml";21             Response.Write(sw.ToString());22             Response.Flush();23             Response.End();24         }25     }

转载地址:http://xmwvl.baihongyu.com/

你可能感兴趣的文章
我的友情链接
查看>>
TClientDataSet[28]: 读写其他格式的 XML 文件
查看>>
WinAPI: midiOutGetDevCaps - 查询输出设备性能
查看>>
BI那些事儿
查看>>
Oracle笔记(下) 多表查询
查看>>
Java ClassLoader需要注意的几个点
查看>>
JDBC连接属性
查看>>
eclipse 使用 git 提交代码报错 “there are no staged files”
查看>>
mysql中将毫秒值转换为可读的字符串
查看>>
对称密码、非对称密码、散列算法与PKI
查看>>
socket编程——TCP
查看>>
远程通知推送教程
查看>>
从SVD到PCA——奇妙的数学游戏
查看>>
Go正则匹配
查看>>
scala视频课程
查看>>
Elasticsearch与Solr搜索引擎选型调研文档
查看>>
Ubuntu下使用Eclipse菜单栏无法显示的问题的解决办法
查看>>
MyBatis笔记(九)——动态SQL与模糊查询
查看>>
HTML5框架、背景和实体
查看>>
Hello Girl
查看>>