I have an ASP.NET Web Forms application.
I have a Form with various TextBoxand right now I have several asp:RequiredFieldValidator linked to them belonging to the same ValidationGroup.
Now I have to apply to some TextBox an additional validation with related error message.
In the specific I got to check whether the text inside the TextBox is a Guid or not. Morevoer this check has to be done on the fly, meaning that as soon as the user moves the cursor from the TextBox the validation has to be performed, without the need to press submit.
How can I call the
IsGuid(string guid)function from Javascript?How can I attach two different error messages as validation (for instance I want to be displayed a message if
TextBox.Texthas carachters not allowed and lenght < N)Is it easier to implement this validation with jQuery or with the ASP.NET validators?
If somebody else has any other idea for its implementation, please feel free to propose. Thanks!