Search code examples
c#asp.netmaster-pagesvalidation-controls

Events on Master Page event not firing with Validation Controls


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?


Solution

  • 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?