ASP MVC 3rd Party Controls

If you are looking for MVC Ajax controls to speed up application development, here are a few good ones,

I think the best are Telerik, not free

free http://mvccontrolstoolkit.codeplex.com/

about USD 1999 http://www.devexpress.com/Products/NET/Controls/ASP/

http://www.obout.com/inc/download.aspx#mvc

And ofcourse with lit bit of effort and fun you can integrate Jq* controls such as Grid, Date, Autocomplete, Modal box

JSON undefined

Here are some scripts that you can implement in your own javascript tag, class to implement json serialisation and parsing

var JSON = JSON || {};
// implement JSON.stringify serialization
JSON.stringify = JSON.stringify || function(obj) {
var t = typeof (obj);
if (t != "object" || obj === null) {
// simple data type
if (t == "string")
obj = '"' + obj + '"';
return String(obj);
} else {
// recurse array or object
var n, v, json = [], arr = (obj && obj.constructor == Array);
for (n in obj) {
v = obj[n];
t = typeof (v);
if (t == "string")
v = '"' + v + '"';
else if (t == "object" && v !== null)
v = JSON.stringify(v);
json.push((arr ? "" : '"' + n + '":') + String(v));
}
return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
}
};
// implement JSON.parse de-serialization
JSON.parse = JSON.parse || function() {
var r = "(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)", k = '(?:[^\-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))';
k = '(?:"' + k + '*")';
var s = new RegExp(
"(?:false|true|null|[\\{\\}\\[\\]]|" + r + "|" + k + ")", "g"), t = new RegExp(
"\\\\(?:([^u])|u(.{4}))", "g"), u = {
'"' : '"',
"/" : "/",
"\\" : "\\",
b : "\u0008",
f : "\u000c",
n : "\n",
r : "\r",
t : "\t"
};
function v(h, j, e) {
return j ? u[j] : String.fromCharCode(parseInt(e, 16));
}
var w = new String(""), x = Object.hasOwnProperty;
return function(h, j) {
h = h.match(s);
var e, c = h[0], l = false;
if ("{" === c)
e = {};
else if ("[" === c)
e = [];
else {
e = [];
l = true;
}
for ( var b, d = [ e ], m = 1 - l, y = h.length; m = 0;)
delete f[i[g]];
}
return j.call(n, o, f);
};
e = p({
"" : e
}, "");
}
return e;
};
}();

 
You can refer to this link for more : https://github.com/douglascrockford/JSON-js

 

This posting is provided “AS IS” with no warranties, and confers no rights.

ASP .Net MVC – Yes or No

Finally got a chance to work on a MVC 3.0 project. Still not convinced if MVC is best choice for asp application development. I found this on net which explains how to decide to go for MVC or not when starting your application development using ASP .Net. Its a simple analyser that can be a great help when in doubt.

Hope it helps.

MVC or Web form

MVC or Web form