views:

233

answers:

2

The complete warning is Validation (): Element 'html' occurs too few times

This is for a JSON view, which you might guess returns a JSON result and hence no html.

+2  A: 

ASP.NET MVC has the ability to return JSON data as a proper json response. It seems you're using HTTP response which expects HTML to exist in it.

Here is an example of using JSON.NET to build a JSON ActionResult.

Soviut
A: 

http://www.dev102.com/2008/08/19/jquery-and-the-aspnet-mvc-framework/ Here is another tutorial as well.

jdelator