.Net中操作XmlDocument对象集锦 - XML做数据库的管理程序
2009-01-10 11:56
615 查看
具体效果如下 ,因为是上课用的例题,所以比较全
3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5<html xmlns="http://www.w3.org/1999/xhtml">
6<head runat="server">
7 <title>无标题页</title>
8</head>
36<body>
37 <form id="form1" runat="server">
38 <div style="width: 698px; height: 214px">
39
40 <table style="width: 101%; height: 206px;">
41 <tr>
42 <td class="style2">
43 广告列表</td>
44 <td class="style6">
45 功能选项</td>
46 </tr>
47 <tr>
48 <td class="style1">
49 <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" Height="166px"
50 onselectedindexchanged="ListBox1_SelectedIndexChanged" Width="182px">
51 </asp:ListBox>
52 </td>
53 <td class="style7">
54 <table style="width: 100%;">
55 <tr>
56 <td class="style5">
57 广告名字:</td>
58 <td>
59 <asp:TextBox ID="tb_name" runat="server" Width="330px"></asp:TextBox>
60 </td>
61 </tr>
62 <tr>
63 <td class="style5">
64 广告图片:</td>
65 <td>
66 <asp:TextBox ID="tb_img" runat="server" Width="329px"></asp:TextBox>
67 </td>
68 </tr>
69 <tr>
70 <td class="style5">
71 链接网址:</td>
72 <td>
73 <asp:TextBox ID="tb_link" runat="server" Width="329px"></asp:TextBox>
74 </td>
75 </tr>
76 <tr>
77 <td align="center" class="style4" colspan="2">
78 <asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="创建XML文件" />
79
80 <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="添加" />
81
82 <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="修改" />
83
84 <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="删除" />
85 </td>
86 </tr>
87 </table>
88 </td>
89 </tr>
90 </table>
91
92 </div>
93 <asp:GridView ID="GridView1" runat="server" BackColor="White"
94 BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
95 <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
96 <RowStyle BackColor="White" ForeColor="#003399" />
97 <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
98 <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
99 <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
100 </asp:GridView>
101 </form>
102</body>
103</html>
104
using System;
2using System.Configuration;
3using System.Data;
4using System.Web;
5using System.Web.Security;
6using System.Web.UI;
7using System.Web.UI.HtmlControls;
8using System.Web.UI.WebControls;
9using System.Web.UI.WebControls.WebParts;
10
11using System.Xml;
12
13public partial class _Default : System.Web.UI.Page
14
广告列表 | 功能选项 | |||||||
阿里妈妈广告 Google广告 |
|
Name | Image | Alink |
---|---|---|
阿里妈妈广告 | ~/image/aaa.gif | http://www.thc56.com/bbs |
天轰穿的淘宝小店 | ~/image/fdfd.jpeg | http://shop.thc56.com/ |
4
5<html xmlns="http://www.w3.org/1999/xhtml">
6<head runat="server">
7 <title>无标题页</title>
8</head>
36<body>
37 <form id="form1" runat="server">
38 <div style="width: 698px; height: 214px">
39
40 <table style="width: 101%; height: 206px;">
41 <tr>
42 <td class="style2">
43 广告列表</td>
44 <td class="style6">
45 功能选项</td>
46 </tr>
47 <tr>
48 <td class="style1">
49 <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" Height="166px"
50 onselectedindexchanged="ListBox1_SelectedIndexChanged" Width="182px">
51 </asp:ListBox>
52 </td>
53 <td class="style7">
54 <table style="width: 100%;">
55 <tr>
56 <td class="style5">
57 广告名字:</td>
58 <td>
59 <asp:TextBox ID="tb_name" runat="server" Width="330px"></asp:TextBox>
60 </td>
61 </tr>
62 <tr>
63 <td class="style5">
64 广告图片:</td>
65 <td>
66 <asp:TextBox ID="tb_img" runat="server" Width="329px"></asp:TextBox>
67 </td>
68 </tr>
69 <tr>
70 <td class="style5">
71 链接网址:</td>
72 <td>
73 <asp:TextBox ID="tb_link" runat="server" Width="329px"></asp:TextBox>
74 </td>
75 </tr>
76 <tr>
77 <td align="center" class="style4" colspan="2">
78 <asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="创建XML文件" />
79
80 <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="添加" />
81
82 <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="修改" />
83
84 <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="删除" />
85 </td>
86 </tr>
87 </table>
88 </td>
89 </tr>
90 </table>
91
92 </div>
93 <asp:GridView ID="GridView1" runat="server" BackColor="White"
94 BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
95 <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
96 <RowStyle BackColor="White" ForeColor="#003399" />
97 <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
98 <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
99 <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
100 </asp:GridView>
101 </form>
102</body>
103</html>
104
using System;
2using System.Configuration;
3using System.Data;
4using System.Web;
5using System.Web.Security;
6using System.Web.UI;
7using System.Web.UI.HtmlControls;
8using System.Web.UI.WebControls;
9using System.Web.UI.WebControls.WebParts;
10
11using System.Xml;
12
13public partial class _Default : System.Web.UI.Page
14
相关文章推荐
- 疯狂.NET 通用权限设计 C/S后台管理,B/S前台调用源码样例程序源码下载之 --- 操作权限
- 一个基础XML作为数据库的学生信息管理程序
- C#操作XmlDocument对象 报缺少根节点 一一道来
- 用ORM的思想操作XML文档,一个对象就搞定不要太简单。滚蛋吧!XmlDocument、XmlNode、Xml***……
- .net操作XmlDocument添加或合并节点(VB)
- 疯狂.NET 通用权限设计 C\S后台管理,B\S前台调用源码样例程序源码下载之 --- 操作权限
- PHP程序中使用PDO对象实现对数据库的增删改查操作(PHP+smarty)
- xml操作学习(一)---运用XmlDocument对象操作Xml
- 简单的考生管理系统,java以XML为数据库,jaxp操作XML实现简单的增删查功能
- PHP程序中使用PDO对象实现对数据库的增删改查操作的示例代码
- 一起谈.NET技术,使用VS2010的Database项目模板统一管理数据库对象
- 疯狂.NET 通用权限设计 C\S后台管理,B\S前台调用源码样例程序源码下载之 --- 操作权限
- Spring中c3p0连接池的配置 及JdbcTemplate的使用 通过XML配置文件注入各种需要对象的操作 来完成数据库添加Add()方法
- 利用.NET中的 OleDb对象,将数据库中全部表转换成XML文件
- .NET结合XML制作广告管理程序 [转]
- 在.NET中操作XmlDocument,XmlReader的方法
- 超详细Oracle 12c数据库对象管理操作
- PHP程序中使用PDO对象实现对数据库的增删改查操作的示例代码
- 在.NET中操作XmlDocument
- 运行时修改App.config文件----完善登录时的用户体验与对XmlDocument对象进行操作札记