Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My application is built in VB.net. I dynamically add textboxes and RequiredFieldValidator. The name of the validation group is vgFormVals.

On my page, i execute this function

if (Page_ClientValidate('vgFormVals')) return false;

without ever filling in the required fields. The function fails to return false.

I also have a treeview on the page. If I select a node in the treeview first and then run the function above, it works.

Thanks in advance.
Posted

1 solution

Found my issue. Some of my required validator fields had white space in the id. For example id = "rfv somevalue". Fixing this fixed my problem, but doesnt explain why it works in the other scenario I mentioned above.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900