主页事件上的事件未使用验证控件触发

时间:2022-05-31 14:58:50

I have applied some textboxes in content pages. I have applied some Validations Controls on it.

我在内容页面中应用了一些文本框。我已经应用了一些验证控件。

What i have done so far is this,

到目前为止我做的是这个,

    <asp:TextBox ID="txtE1" runat="server" CssClass="input_type_text" Width="75px"  CausesValidation="false" ValidationGroup="te" >
<asp:RequiredFieldValidator ID="rqdE1" runat="server" ControlToValidate="txtE1"
                         ErrorMessage="*"></asp:RequiredFieldValidator>

I have a Sign Out link on the master Page. I am unable to generate that event. Any other thing i am missing/required?

我在主页面上有一个Sign Out链接。我无法生成该事件。我缺少/需要的任何其他东西?

1 个解决方案

#1


1  

If you have validation errors on the page, the javascript validation prevents the page to postback. If sign out is in the scope of the textbox's form, maybe this is the problem in your case. Can you see if there are validation errors?

如果页面上有验证错误,则javascript验证会阻止页面回发。如果退出是在文本框的表单范围内,可能这是您的问题。你能看出是否有验证错误?

#1


1  

If you have validation errors on the page, the javascript validation prevents the page to postback. If sign out is in the scope of the textbox's form, maybe this is the problem in your case. Can you see if there are validation errors?

如果页面上有验证错误,则javascript验证会阻止页面回发。如果退出是在文本框的表单范围内,可能这是您的问题。你能看出是否有验证错误?