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

你可能感兴趣的文章
在Eclipse中配置Tomcat 创建和运行Servlet/JSP
查看>>
Javascript:DOM动态创建元素实例应用
查看>>
jQuery操作cookie
查看>>
11-03笔记图
查看>>
时间戳解读
查看>>
width为auto或者100%的区别
查看>>
《贝多芬传》译者序
查看>>
node.js的koa@2性能测试
查看>>
matlab函数_连通区域
查看>>
伪元素选择器
查看>>
Java过滤敏感词
查看>>
java多线程导入excel(poi)
查看>>
UML类间关系
查看>>
Python自学笔记-sorted()函数(来自廖雪峰的官网Python3)
查看>>
如何从零安装Mysql
查看>>
设计模式:命令模式
查看>>
react文档demo实现输入展示搜索结果列表
查看>>
货代英语--------澳大利亚包装声明
查看>>
UINavigationController和UIBarButtonItem的例子
查看>>
有关UnrealEngine材质编辑器中的Custom节点的一些小贴士
查看>>