Author: dpreznik | Posted on: 2/3/2010 3:34:52 PM | Views : 248

Dear friends,


I have a textbox that I want to validate. I added a custom control that checks validity of the textbox's content. And I have a button, say, "Process". When I click the button, the execution comes to the server validation function, and e.IsValid is set to false. In this case I expect the process not to go further, but it does, as if validation never happened.
What am I doing wrong?


<asp:TextBox ID="txtFilterValue" runat="server"></asp:TextBox> <asp:CustomValidator ID="CustomError" runat="server" onservervalidate="Custom_ServerValidate" ControlToValidate="txtFilterValue" ErrorMessage="Populated Dynamically" ValidateEmptyText="True">*</asp:CustomValidator>



Go to the complete details ...