Server side code in controller:
     public ContentResult TaskJsonP(string callback,int id)
        {
            var model = service.GetTaskDetails(new TaskDetailRequest() { Id = id });
            //return Json(model, JsonRequestBehavior.AllowGet);
            return Content(String.Format("{0}({1});",
          callback,
          new JavaScriptSerializer().Serialize(model)),          
          "application/javascript");

        }
Client side you can open any page and try below:
$.get("http://localhost:45897/home/taskJsonP/1",
                  
                   function(value)
                   {
                       alert (value)              },
                   "jsonp"
             );


 
Categories: Asp.net | C# | Html5 | JQuery | MVC

May 16, 2013
@ 11:49 PM
1. IE8+ , chrome , firefox and safari support web storage
2. There are two types of web storage : localStorage and sessionStorage
3. sessionStorage expired after window/tab closed
4. localStorage never expired, it need be clean or removed by script
5. localStorage maxium size is 5M, but for safari, actually only 2.6M
6. Use localStrage['key'] get good performance in most of browser (not always best,but good enough)


 
Categories: Html5

http://www.rgraph.net/
RGraph is a HTML5 charts library that uses the HTML5 canvas tag to draw and supports over twenty different types of charts. Using the new HTML5 canvas tag, RGraph creates these charts inside the web browser using JavaScript, meaning quicker pages and less web server load. This leads to smaller page sizes, lower costs and faster websites.


 
Categories: Html5