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

你可能感兴趣的文章
centos下设置ssh连接时间
查看>>
安装Git
查看>>
dell服务器centos 启动不了
查看>>
c++ already defined in *.obj 错误
查看>>
mui事件执行了两次
查看>>
react router dom 4 使用
查看>>
maven升级
查看>>
spring 学习1-使用maven创建spring工程
查看>>
Ubuntu下安装Tomcat
查看>>
topcoder SRM 625 DIV2 B
查看>>
snort读取规则头部
查看>>
用Qt写软件系列六:博客园客户端的设计与实现(1)
查看>>
Bash Shell PS1: 10 Examples to Make Your Linux ...
查看>>
SVN被锁定的几种解决方法
查看>>
php 计算当前的程序的进程数
查看>>
CentOS 6.5系统中YUM安装配置MySQL数据库
查看>>
JavaBean动态添加删除属性
查看>>
ceph中获取osdmap和monmap的方式
查看>>
START WITH...CONNECT BY
查看>>
shiro token AuthenticationInfo
查看>>