您的位置:首页 > 数据库

.Net中操作XmlDocument对象集锦 - XML做数据库的管理程序

2009-01-10 11:56 615 查看
具体效果如下 ,因为是上课用的例题,所以比较全

广告列表功能选项
阿里妈妈广告
Google广告
广告名字:
广告图片:
链接网址:
NameImageAlink
阿里妈妈广告~/image/aaa.gifhttp://www.thc56.com/bbs
天轰穿的淘宝小店~/image/fdfd.jpeghttp://shop.thc56.com/
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐