Pure Javascript application with ASP.NET -
in opinion, what's best way create server side pure javascript application asp.net?
wcf rendering json? ihttphandler?
update
like gmail, runs in browser (with lot of javascript) , submit , receive data ajax, example.
in classic asp.net, it's easy use handlers (ihttphandler):
context.response.contenttype = "application/json" context.response.clear() context.response.addheader("pragma", "no-cache") context.response.addheader("expires", "-1") context.response.write(myjsonstring)
in markup, use following jquery code:
$.ajax({ type: "get", url: "gettasksfortaskset.ashx?tasksetid=" + guid, contenttype: "application/json; charset=utf-8", datatype: "json", success: function(data) { for(var = 0; < data.length; i++) { // }, error: function(){ alert('error'); } });
Comments
Post a Comment