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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -