Default.aspx
资源名称:XMLOp.rar [点击查看]
上传用户:feifan318
上传日期:2022-08-10
资源大小:5k
文件大小:1k
源码类别:
xml/soap/webservice
开发平台:
JavaScript
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>XML操作1</title>
- <script type="text/javascript">
- function readxml()
- {
- document.getElementById("TextBox1").value = "";
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Button ID="btnCreate" runat="server" OnClick="btnCreate_Click" OnClientClick = "readxml()" Text="创建XML" /><br />
- <br />
- <br />
- <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" OnClientClick = "readxml()" Text="读取XML" /><br />
- <asp:TextBox ID="TextBox1" runat="server" Height="239px" TextMode="MultiLine" Width="420px"></asp:TextBox>
- <br />
- <br />
- <br />
- ID:
- <asp:TextBox ID="txtID" runat="server"></asp:TextBox><br />
- Name:<asp:TextBox ID="txtName" runat="server"></asp:TextBox><br />
- Sex:
- <asp:TextBox ID="txtSex" runat="server"></asp:TextBox><br />
- <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" OnClientClick = "readxml()" Text="添加" /></div>
- </form>
- </body>
- </html>