Click here to Skip to main content
12,450,347 members (44,016 online)
Click here to Skip to main content
Articles » Web Development » Ajax » General » Downloads

Stats

428.7K views
6.2K downloads
107 bookmarked
Posted

Working on JSON objects in jQuery and MVC

, 24 Nov 2010 CPOL
This article uses a simple example to answer some common questions when working on JSON objects in jQuery and MVC.
JsonMVC
JsonMVC
bin
Content
Images
rubik.ico
Styles
jquery.tree.images
ajax-loader.gif
file.gif
folder-closed.gif
folder.gif
treeview-black-line.gif
treeview-black.gif
treeview-default-line.gif
treeview-default.gif
treeview-famfamfam-line.gif
treeview-famfamfam.gif
treeview-gray-line.gif
treeview-gray.gif
treeview-red-line.gif
treeview-red.gif
Controllers
Global.asax
JsonMVC.csproj.user
Models
obj
Debug
TempPE
Properties
Repositories
Scripts
Views
Home
<?xml version="1.0"?>

<configuration>
  <system.web>
    <httpHandlers>
      <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
    </httpHandlers>

    <!--
        Enabling request validation in view pages would cause validation to occur
        after the input has already been processed by the controller. By default
        MVC performs request validation before a controller processes the input.
        To change this behavior apply the ValidateInputAttribute to a
        controller or action.
    -->
    <pages
        validateRequest="false"
        pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
        pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
        userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <controls>
        <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
      </controls>
    </pages>
  </system.web>

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    
    <handlers>
      <remove name="BlockViewHandler"/>
      <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
    </handlers>
  </system.webServer>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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

Share

About the Author

Dr. Song Li
United States United States
I have been working in the IT industry for some time. It is still exciting and I am still learning. I am a happy and honest person, and I want to be your friend.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 24 Nov 2010
Article Copyright 2010 by Dr. Song Li
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid