博客
关于我
强烈建议你试试无所不能的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/

你可能感兴趣的文章
jsp学习(1)
查看>>
.Net Core 获取项目所有程序集,排除Microsoft、Nuget下载的
查看>>
FDC2214电容传感器驱动程序
查看>>
策略模式Strategy Pattern
查看>>
MySQL Metadata Lock详解
查看>>
css简写
查看>>
MySQL用户管理语句001
查看>>
fengmiantu
查看>>
HSF从部署到开发到原理分析
查看>>
PHP语言 -- jquery
查看>>
python 常用的函数
查看>>
Codeforces#543 div2 A. Technogoblet of Fire(阅读理解)
查看>>
maven配置阿里云仓库
查看>>
SQL Server 大师级别认证
查看>>
FFmpeg的安装与使用
查看>>
Gartner:2012年大数据HypeCycle
查看>>
nbu备份db2数据库6号错误解决案例
查看>>
【闪存虚拟化】软件定义服务器闪存
查看>>
舍弃才会获取
查看>>
centos 7部署oracle 12c rac 上菜了
查看>>