【发布时间】:2017-08-15 18:06:24
【问题描述】:
我想做一个网站。以下屏幕截图是我的登录/注册链接页面。当我在不提供任何数据的情况下单击登录按钮时,它会向我显示警报。没关系。但问题是,当我按下注册按钮进入注册/注册页面时,当时“文本框”也在向我显示此验证。这就是我无法进入注册/注册页面的原因。
<table id="Table2" runat="server" align="center" style="margin-top:15px; width:72%; height:170px">
<tr style="text-align:center; width:80%; height:8px;">
<td style="font-size:medium; font-family:Courier New; font-weight:bold ;color:#000000; text-align:left ; width:20%; height:8px;">Mobile No</td>
<td style=" width:40%;height:8px"><input type="number" id="mobnum" runat="server" style="width:70%; height:23px" required="required" /></td>
</tr>
<tr style="text-align:center; width:80%; height:8px">
<td style="font-size:medium; font-family:Courier New; font-weight:bold ;color:#000000; text-align:left ; width:30%; height:8px">Password</td>
<td style="width:50%; height:8px"><asp:TextBox id="TextBox8" runat="server" style="width:70%; height:23px;" TextMode="Password" re ></asp:TextBox></td>
</tr>
<tr style="text-align:center; width:80%; height:29px">
<td style="width:30%; height:29px"></td>
<td style="width:50%; height:29px"><asp:Button ID="Button2" runat="server" ValidationGroup="IsValid" height="30px" width="100px" BackColor="#006400" BorderColor="White" BorderStyle="None" ForeColor="White" Text="Login" Font-Bold="true" /></td>
</tr>
</table>
<table id="Table4" runat="server" align="center" style="margin-top:15px; width: 72%; height:170px">
<tr style="text-align:center; width:100%; height:8px;">
<td style="width:100%; height:10px; text-align:center"><asp:Button ID="Button1" runat="server" PostBackUrl="~/Signup.aspx" CausesValidation="false" height="30px" width="100px" BackColor="#006400" BorderColor="White" BorderStyle="None" ForeColor="White" Text="Register" Font-Bold="true" OnClick="Button1_Click" /></td>
</tr>
<tr style="text-align:center; width:80%; height:22px;">
<td style="width:100%; height:22px"></td>
</tr>
</table>
【问题讨论】:
-
请贴一些代码
-
在这里查看我的答案:stackoverflow.com/questions/45543294/…
-
没看到下面的截图