Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

MVC PartialView validation on the client

Avatar of gerrie-govaerts
gerrie-govaertsFlag for Belgium asked on
AJAXWeb Frameworks
5 Comments1 Solution962 ViewsLast Modified:
I have a really annoying MVC problem when I want to validate a partial view that is returned from a controller action.

Depending on a given number, I need to generate a view - it is nicely returned, looks great, and the model is Data Annotated.

Problem: the validation is never triggered on the client and this makes it a real problem.
I have the user to fill in the general information + the details, but the details are not validated.

                        if (ui.index == 2) // test tab
                            var url = '<%= Url.Content("~/Stock/getTestTab") %>/'+ $("#StockItem_InStock").val();

                            $.get(url, null, function (response)

Can someone help me please!