Default.aspx
上传用户:feifan318
上传日期:2022-08-10
资源大小:5k
文件大小:1k
源码类别:

xml/soap/webservice

开发平台:

JavaScript

  1. <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>XML操作1</title>
  6.     <script type="text/javascript">
  7.         function readxml()
  8.         {
  9.             document.getElementById("TextBox1").value = "";
  10.         }
  11.     </script>
  12. </head>
  13. <body>
  14.     <form id="form1" runat="server">
  15.     <div>
  16.         <asp:Button ID="btnCreate" runat="server" OnClick="btnCreate_Click" OnClientClick = "readxml()" Text="创建XML" /><br />
  17.         <br />
  18.         <br />
  19.         <asp:Button ID="Button1" runat="server" OnClick="Button1_Click"  OnClientClick = "readxml()" Text="读取XML" /><br />
  20.         <asp:TextBox ID="TextBox1" runat="server" Height="239px" TextMode="MultiLine" Width="420px"></asp:TextBox>
  21.         <br />
  22.         <br />
  23.         <br />
  24.         ID: &nbsp; &nbsp;
  25.         <asp:TextBox ID="txtID" runat="server"></asp:TextBox><br />
  26.         Name:<asp:TextBox ID="txtName" runat="server"></asp:TextBox><br />
  27.         Sex: &nbsp;
  28.         <asp:TextBox ID="txtSex" runat="server"></asp:TextBox><br />
  29.         <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" OnClientClick = "readxml()" Text="添加" /></div>
  30.     </form>
  31. </body>
  32. </html>