日期:2010-07-24  浏览次数:20397 次

  创建一个WEB页面,命名为:Add.aspx。
  
  Add.aspx代码:
  
  <%@ Page language="c#" Codebehind="Add.aspx.cs" AutoEventWireup="false" Inherits="TeachShow.Charpter7.AccessDataBase.Add" %>
  
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  
  <HTML>
  
      <HEAD>
  
         <title>Add</title>
  
         <LINK href="../../Style.css" type="text/css" rel="stylesheet">
  
         <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  
         <meta content="C#" name="CODE_LANGUAGE">
  
         <meta content="JavaScript" name="vs_defaultClientScript">
  
         <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  
      </HEAD>
  
      <body MS_POSITIONING="GridLayout">
  
         <form id="Form1" method="post" runat="server">
  
             <div align="center">
  
                <center>
  
                    <table class="smallBlack" height="318" cellSpacing="0" cellPadding="0" width="429" border="0">
  
                       <tr>
  
                           <td class="title" vAlign="top" width="429" colSpan="2" height="31">添加一个新的发行者</td>
  
                       </tr>
  
                       <tr>
  
                           <td vAlign="top" width="79" height="23">发行者ID:</td>
  
                           <td vAlign="top" width="350" height="23"><asp:textbox id="TextBox1" runat="server" Height="18px" CssClass="smallRed"></asp:textbox><FONT face="宋体">(以99打头,共4位数字)</FONT></td>
  
                       </tr>
  
                       <tr>
  
                           <td vAlign="top" width="79" height="23"><FONT face="宋体">姓名:</FONT></td>
  
                           <td vAlign="top" width="350" height="23"><asp:textbox id="TextBox2" runat="server" Height="18px" CssClass="smallRed"></asp:textbox></td>
  
                       </tr>
  
                       <tr>
  
                           <td vAlign="top" width="79" height="23"><FONT face="宋体">城市:</FONT></td>
  
                           <td vAlign="top" width="350" height="23"><asp:textbox id="TextBox3" runat="server" Height="18px" CssClass="smallRed"></asp:textbox></td>
  
                       </tr>
  
                       <tr>
  
                           <td vAlign="top" width="79" height="23"><FONT face="宋体">省份:</FONT></td>
  
                           <td vAlign="top" width="350" height="23"><asp:textbox id="TextBox4" runat="server" Height="18px" CssClass="smallRed"></asp:textbox><FONT face="宋体">(2个字符)</FONT></td>
  
                       </tr>
  
                       <tr>
  
                           <td vAlign="top" width="79" height="24"><FONT face="宋体">国家:</FONT></td>
  
                           <td vAlign="top" width="350" height="24"><asp:textbox id="TextBox5" runat="server" Height="18px" CssClass="smallRed"></asp:textbox></td>
  
                       </tr>
  
                       <tr>
  
                           <td vAlign="top" align="center" width="429" colSpan="2" height="24"><asp:linkbutton id="LinkButton1" runat="server">提交到数据库</asp:linkbutton></td>
  
                       </tr>
  
                       <tr>