Last post Dec 09, 2013 11:51 AM by Sheng Zeng
Dec 04, 2013 10:03 AM|Sheng Zeng|LINK
In my Dynamic Data application, I used the ListDetails page template. In the edit mode, I found client side validation script is not called. The invalid input will be submitted to server side. Did anyone ever experience such issue? And what might causes
Dec 04, 2013 10:15 AM|sjnaughton|LINK
Have you check this with a vanila app? as I have never heard of anyone with this issue before?
Dec 04, 2013 10:44 AM|Sheng Zeng|LINK
What do you mean by a vanila app?
I do have a simplified project running on the same machine. The key compoments referenced are same for the simplified and real project. The simplified project works very well on validation, no that kind of issue. But I spent a lot of time, still couldn't
figure out what's wrong with my real project.
Any idea? Maybe some components conflict with Dynamic Data that makes the the validators not rendered properly?
Dec 04, 2013 11:33 AM|sjnaughton|LINK
Where you create a Dynamic Data application from the Project template and add your model with no customisation?
Dec 05, 2013 02:54 PM|Sheng Zeng|LINK
The simple project is based on David Ebbo's prototype code, because I need to use Dynamic Data and WCF Data service together:
The simple project is based on Dynamic Data project template with a little customization. The validation works pretty well.
My real project is a ASP.NET application with the Dynamic Data features merged into it.
Dec 09, 2013 04:44 AM|sjnaughton|LINK
I suspect that the validation information is not coming accross the service, you could check this by debuggin one fo the field templates and seeing if the validators get set-up correctly.
Dec 09, 2013 11:51 AM|Sheng Zeng|LINK
You're really an expert. The place you pointed out is what the problem is. I don't know why the previouse developers commented out the code to setup the Validators. After I bring them back, everything is OK now.