Posted on: 4/18/2014 9:24:31 PM | Views : 418

Hi i got this issue. In other projects it works good but in my actual project when i debug my code and i write text into textbox i validate with custom validator
it doesnt even send written text into code behind.
<asp:CustomValidator runat="server" id="cusCustom" controltovalidate="tbUsername" onservervalidate="cusCustom_ServerValidate" errormessage="The text must be exactly 8 characters long!" Text="The text must be exactly 8 characters long!" />
in code behind
protected void cusCustom_ServerValidate(object sender, ServerValidateEventArgs e) { if (e.Value.Length == 8) e.IsValid = true; else e.IsValid = false; }
in other projects when i put debug mark on if (e.Value.Length == 8) row
and write some text and send it with button i see written text in e.Value
but in my actual project it didnt even stop on debugger like it dont val ...

Go to the complete details ...