7
votes
2answers
21k views

Basic Simple Asp.net + jQuery + JSON example

Earlier this year, before I learnt about Code Review StackExchange, I gave this answer in response to a question about how to combine ASP.net, jQuery, and JSON: ...
6
votes
1answer
327 views

C# serialisation implementation review

I'm just starting to develop more in C# after being mainly a VB.Net developer and was looking for some one to critic my implementation of a NewtonSoft Json.Net serialiser. Can you provide some ...
4
votes
4answers
352 views

How can i make this piece of code better ?

using System; using System.Collections.Generic; using System.Text; using System.Reflection; namespace ParserProject{ class ParseToJsonString{ private readonly StringBuilder _sb; ...
3
votes
1answer
530 views

Convert XSD to JSONSchema, tips for refactoring

UPDATED - This is v 0.4 .. i have fixed a few more bugs ..and covered more cases. public static class ReadXsd { #region ExtensionMethods private static void AddTypeAndExtends ( this ...
3
votes
2answers
423 views

Passing HTML back inside a JSON object

First question on here. I'm working on a piece of code in my MVC3 application and I'm struggling to decide if what I plan to do is a bad idea or not. I have a snippet of javascript that calls an mvc ...
2
votes
3answers
420 views

How can I improve this code?

public class Address { public string house_no { get; set; } public string street { get; set; } public string zip { get; set; } } public class Contact { public string ...
-1
votes
1answer
116 views

ASP.NET MVC 4 Shopping Cart - Cannot update shopping car items using JQuery , Ajax, jSON, jGrid [closed]

I have this code in a C# MVC 4 VS2012 project. I need to be able to update the shopping cart with jSON data using JQuery/AJAX, i'm using jqGrid to display the data and pulling the shopping cart items ...