<%@ Register TagPrefix="uc1" TagName="Menu" Src="Menu.ascx" %>
<%@ Page language="c#" Codebehind="CustomerAdd.aspx.cs" AutoEventWireup="false" Inherits="ITOA.CustomerAdd" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>增加客户</title>
<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">
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<base target="_self">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
<tr id="top" runat="server">
<td align="center"><uc1:menu id="Menu1" runat="server"></uc1:menu></td>
</tr>
</table>
<asp:panel id="pnl_Main" runat="server" Width="100%">
<TABLE cellSpacing="0" cellPadding="0" width="400" align="center" border="0">
<TR>
<TD style="WIDTH: 399px" colSpan="4" height="30">&nbsp;
</TD>
</TR>
<TR>
<TD style="WIDTH: 399px" align="center" colSpan="4"><STRONG><FONT size="4">增加客户</FONT></STRONG></TD>
</TR>
<TR>
<TD style="WIDTH: 399px" vAlign="middle" colSpan="4" height="4">&nbsp;</TD>
</TR>
<TR class="BodyFont">
<TD width="80"><FONT face="宋体">姓名</FONT></TD>
<TD style="WIDTH: 121px" width="121">
<asp:textbox id="txtName" runat="server" BorderWidth="1px" BorderColor="#7C9ACE" width="120px"></asp:textbox></TD>
<TD style="WIDTH: 82px" width="82"><FONT face="宋体">E保卡号</FONT></TD>
<TD style="WIDTH: 121px" width="121"><asp:textbox id="txtEbaokahao" runat="server" BorderWidth="1px" BorderColor="#7C9ACE" width="120px"></asp:textbox></TD>
</TR>
<TR class="BodyFont">
<TD width="80"><FONT face="宋体">客户编号</FONT></TD>
<TD style="WIDTH: 121px" width="121">
<asp:textbox id="txtSerialNumber" runat="server" BorderWidth="1px" BorderColor="#7C9ACE" width="120px"
Enabled="False"></asp:textbox></TD>
<TD style="WIDTH: 82px" width="82"><FONT face="宋体">分店编号</FONT></TD>
<TD style="WIDTH: 121px" width="121">
<asp:textbox id="txtSubSerialNumber" runat="server" BorderWidth="1px" BorderColor="#7C9ACE" width="100%"></asp:textbox></TD>
</TR>
</asp:panel><asp:panel id="pnl_Login" runat="server" Width="100%">
<DIV align="center">
<TABLE align="center">
<TR class="BodyFont">
<TD style="HEIGHT: 18px" colSpan="2"><FONT color="red">
<asp:Label id="lbTitle" runat="server" Width="100%"></asp:Label></FONT></TD>
</TR>
<TR class="BodyFont" vAlign="middle">
<TD>用户名</TD>
<TD>
<asp:TextBox id="txtUser" runat="server"></asp:TextBox></TD>
</TR>
<TR class="BodyFont" vAlign="middle">
<TD>密码</TD>
<TD>
<asp:TextBox id="txtPassword" runat="server" TextMode="Password"></asp:TextBox></TD>
</TR>
<TR vAlign="middle">
<TD align="right" colSpan="2">
<asp:label id="lbMsg" runat="server" Width="80" ForeColor="Red" Visible="False" CssClass="BodyFont"></asp:label>
<asp:Button id="btLogin" runat="server" Width="77px" Text="登陆"></asp:Button></TD>
</TR>
</TABLE>
</DIV>
</asp:panel></form>
</body>
</HTML>

解决方案 »

  1.   

    <form id="Form1" method="post" runat="server">它没有将数据提交到另外页面,而本页就这些form表单,它是怎么保存数据的,而运行程序的话,运行正常,不过还有个CustomerAdd.aspx.resx程序,和CustomerDB.cs
      

  2.   

    难道CustomerAdd.aspx.resx里面有参数传递,可是CustomerAdd.aspx.resx文件里也没有将参数传递保存到数据库的东西呀,我用的是visual studio 2005,好像这个程序以前开发时是用visual studio 2003开发的,有没有关系