各位大哥大姐帮帮小弟 我的网站上的注册页面中的password型的文本框在本地能读取并插入到数据库中 但传到网上插入到数据库中是空的 急啊 帮帮忙 谢谢了

解决方案 »

  1.   

    html代码:
    <%@ Register TagPrefix="uc1" TagName="uc_right" Src="uc_right.ascx" %>
    <%@ Register TagPrefix="uc1" TagName="uc_bottom" Src="uc_bottom.ascx" %>
    <%@ Register TagPrefix="uc1" TagName="uc_left" Src="uc_left.ascx" %>
    <%@ Register TagPrefix="uc1" TagName="uc_logo" Src="uc_logo.ascx" %>
    <%@ Register TagPrefix="uc1" TagName="uc_childgg" Src="uc_childgg.ascx" %>
    <%@ Page language="c#" Codebehind="ConsumerRegister.aspx.cs" AutoEventWireup="false" Inherits="myw.ConsumerRegister"%>
    <%@ Register TagPrefix="uc1" TagName="uc_returnback" Src="uc_returnback.ascx" %>
    <%@ Register TagPrefix="uc1" TagName="uc_shoplogo" Src="uc_shoplogo.ascx" %>
    <%@ Register TagPrefix="uc1" TagName="uc_shopbottom" Src="uc_shopbottom.ascx" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML>
    <HEAD>
    <title>中英商贸网-为中小型企业走进欧洲市场提供一个B2B平台 </title>
    <!-- enableEventValidation="false" -->
    <meta content="中英商贸网-为中小型企业走进欧洲市场提供一个B2B平台" name="keywords">
    <meta content="中英商贸网-为中小型企业走进欧洲市场提供一个B2B平台" name="description">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <style type="text/css">BODY { MARGIN: 0px }
    </style>
    <LINK href="liuxiaocss.css" type="text/css" rel="stylesheet">
    </HEAD>
    <body>
    <form id="Form1" method="post" runat="server">
    <table cellSpacing="0" cellPadding="0" width="827" border="0">
    <tr>
    <td>
    <div align="center">
    <table cellSpacing="0" cellPadding="0" width="1006" border="0">
    <tr>
    <td align="center"><uc1:uc_shoplogo id="Uc_shoplogo1" runat="server"></uc1:uc_shoplogo></td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    <tr>
    <td align="center">
    <TABLE id="Table7" cellSpacing="0" cellPadding="0" width="825" border="0">
    <TR>
    <TD>
    <TABLE id="Table8" cellSpacing="0" cellPadding="0" width="827" border="0">
    <TR>
    <TD vAlign="top" height="811">
    <TABLE id="Table9" cellSpacing="0" cellPadding="0" width="100%" border="0">
    <TR>
    <TD vAlign="top"><IMG height="98" src="images/fenye_top.gif" width="253"></TD>
    </TR>
    <TR>
    <td class="bg_a" height="400">&nbsp;
    <TABLE id="Table5" height="366" cellSpacing="0" cellPadding="0" width="232" align="center"
    border="0">
    <TR>
    <TD vAlign="top" height="3">
    <TABLE id="Table6" height="54" cellSpacing="0" cellPadding="0" width="189" align="center"
    border="0">
    <TR>
    <TD height="53">&nbsp;&nbsp;
    <asp:linkbutton id="LinkButton1" runat="server">新用户注册</asp:linkbutton><asp:image id="Image2" runat="server" ImageUrl="image\1index_lm.gif" Width="64px" Height="34px"></asp:image></TD>
    </TR>
    <TR>
    <TD height="53">&nbsp;&nbsp;
    <asp:linkbutton id="LinkButton2" runat="server">商城主页</asp:linkbutton>&nbsp;
    <asp:image id="Image3" runat="server" ImageUrl="image\1index_lm.gif" Width="64px" Height="35px"></asp:image></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
    <TD vAlign="top"></TD>
    </TR>
    <TR>
    <TD></TD>
    </TR>
    </TABLE>
    </td>
    </TR>
    </TABLE>
    </TD>
    <TD vAlign="top" align="left" height="811">
    <TABLE id="Table4" cellSpacing="0" cellPadding="0" align="center" border="0">
    <TR>
    <TD align="right"><uc1:uc_returnback id="Uc_returnback1" runat="server"></uc1:uc_returnback></TD>
    </TR>
    <TR>
    <TD><asp:image id="Image1" runat="server" ImageUrl="image\1.jpg" Width="550px"></asp:image></TD>
    </TR>
    <TR>
    <TD></TD>
    </TR>
    <TR>
    <TD vAlign="top"><asp:panel id="Panel1" runat="server">
    <TABLE id="Table1" style="HEIGHT: 340px" cellSpacing="0" cellPadding="0" width="98%" align="center"
    bgColor="aliceblue" border="0">
    <TR>
    <TD align="center">用户协议
    </TD>
    </TR>
    <TR>
    <TD>
    <asp:TextBox id="TextBox1" runat="server" Width="98%" Height="254px" TextMode="MultiLine"></asp:TextBox></TD>
    </TR>
    <TR>
    <TD align="center" bgColor="#99ccff" height="14">
    <asp:RadioButtonList id="RadioButtonList1" runat="server" Width="184px" Font-Size="Small" RepeatDirection="Horizontal"
    AutoPostBack="True">
    <asp:ListItem Value="同意">同意</asp:ListItem>
    <asp:ListItem Value="不同意" Selected="True">不同意</asp:ListItem>
    </asp:RadioButtonList></TD>
    </TR>
    <TR>
    <TD align="center">
    <asp:Button id="Button1" runat="server" Font-Size="X-Small" Enabled="False" Text="下一步"></asp:Button></TD>
    </TR>
    </TABLE>
      

  2.   

    如果是Access数据库.考虑数据库文件是否有可修改权限
      

  3.   

    我用的是SQLSERVER数据库 在本地上的程序也连的这个库 但到网上就不好使了 我刚才试了一下把文本框的password改成singleline就好使了 但我要用的是password样式的啊