这是怎么回事呀???
Login1_LoginError
Login1_Authenticate
我在这两个事件下获得Login1.UserName值都是空
急呀!!!!
Login1_LoginError
Login1_Authenticate
我在这两个事件下获得Login1.UserName值都是空
急呀!!!!
解决方案 »
- asp.net c#2008 treeview的 onselectednodechanged 事件不能触发
- Inser into 语句老出错,快崩溃了
- DropDownList控件绑定栏目分类的问题
- 动态网页的url问题!急!需要大家帮忙!
- 文件上传到数据库,出现 范围超过int 的错误
- 财付通接口问题,哪个好心人来帮帮我.................
- 用asp.net自動發送Mail問題,請求各位大俠幫忙。謝謝!!!!
- 怎么将delphi做的dll在.Net中引用
- win2008系统64位 安装Vs2010后,没有.net4.0框架
- 请问在asp.net中怎样调用远程的com服务
- ASP.net 如何标识客户端的(不同浏览器) 如何获取它
- 求救啊~~~~~~!!!我想问下关于wap网站问题
PasswordRecoveryText="找回密码"
DestinationPageUrl="../Default.aspx" onloginerror="Login1_LoginError"
onauthenticate="Login1_Authenticate" >
<LayoutTemplate>
<table class="tab_info">
<tr>
<td colspan="2" class="tab_title">
登 录
</td>
</tr>
<tr>
<td style="width: 30%;">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名</asp:Label>
</td>
<td style="width: 70%;">
<asp:TextBox ID="UserName" Width="150px" runat="server" Text="440402197505016111"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密 码</asp:Label>
</td>
<td>
<asp:TextBox ID="Password" Width="150px" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label1" runat="server">验证码</asp:Label>
</td>
<td>
<asp:TextBox ID="TxtValidateNumber" Width="50px" runat="server" AutoCompleteType="Disabled"></asp:TextBox>
<asp:Image ID="Image1" runat="server" ImageUrl="../images/VldNum.aspx" ImageAlign="Top"
alt="看不清?点击更换" onclick="this.src=this.src+'?'" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtValidateNumber"
ErrorMessage="必须填写“验证码”。" ValidationGroup="Login1" Display="Dynamic">*</asp:RequiredFieldValidator>
<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="“验证码”错误。"
ControlToValidate="TxtValidateNumber" OnServerValidate="CustomValidator1_ServerValidate"
ValidationGroup="Login1" Display="Dynamic">*</asp:CustomValidator>
</td>
</tr>
<tr>
<td colspan="2">
<center>
<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="登 录" ValidationGroup="Login1" />
<asp:CheckBox ID="RememberMe" runat="server" Text="记住我" />
</center>
</td>
</tr>
<tr>
<td colspan="2">
<asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="PasswordRecovery.aspx">密码重置</asp:HyperLink>
</td>
</tr>
<tr>
<td colspan="2" style="color: Red;">
<asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="Login1" Display="Dynamic"
runat="server" />
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
</table>
</LayoutTemplate>
</asp:Login>