Compare Validator
-
Hi, I have a compare validator which compares the email and confirm email text boxes on my page. Is there anyway that I could trim the spaces at the start and end of these email address and then get them compared by the control? As is expected, It gives error if there is space at the end of either text boxes. Thanks
-
Hi, I have a compare validator which compares the email and confirm email text boxes on my page. Is there anyway that I could trim the spaces at the start and end of these email address and then get them compared by the control? As is expected, It gives error if there is space at the end of either text boxes. Thanks
-
Hi, I have a compare validator which compares the email and confirm email text boxes on my page. Is there anyway that I could trim the spaces at the start and end of these email address and then get them compared by the control? As is expected, It gives error if there is space at the end of either text boxes. Thanks
on thing you can do is use onblur event and create one javascript function which remove white space from the text box hope this will help you
-
Hi, I have a compare validator which compares the email and confirm email text boxes on my page. Is there anyway that I could trim the spaces at the start and end of these email address and then get them compared by the control? As is expected, It gives error if there is space at the end of either text boxes. Thanks
Adding to Pranay Rana's solution, trim the spaces in a javascript function on blur and then trigger the validation using the
Page_ClientValidate()
method to ensure that the compare validation is done after the trim. HTH! -
Hi, I have a compare validator which compares the email and confirm email text boxes on my page. Is there anyway that I could trim the spaces at the start and end of these email address and then get them compared by the control? As is expected, It gives error if there is space at the end of either text boxes. Thanks
-
Adding to Pranay Rana's solution, trim the spaces in a javascript function on blur and then trigger the validation using the
Page_ClientValidate()
method to ensure that the compare validation is done after the trim. HTH!