Getting JSON from ASP.Net

1. The chef said, I should use a normal aspx to solve this task, and write sth, like reponse.write(“accpeti encoding : txt/json”), it is ugly. Please read this atricle from Johnny Code (http://johnnycode.com/2012/07/16/getting-json-from-asp-net-beautiful-good-bad-ugly/). Why it is ugly.

2 by defualt .net response only to POST Request and return XML. as wrapper. You should add the following http header in your request.

Content-Type: application/json; charset=utf-8

An end the chef want to sue handler to solve the URL rewrite problme, show me some code in web.config to define a handler.
I found this article about add handler in web.config (http://www.yongfa365.com/Item/configuration-configSections-SingleTagSectionHandler-DictionarySectionHandler-NameValueSectionHandler.html)

TRUNCATE DROP DELETE 区别

TRUNCATE 快速删除 表数据,不保留日志,不可以被恢复   慎用

delete  按照条件删除表数据 ,保留表结构,会保留日志,可以被恢复

drop  删除 表结构 和表数据  会保留日志,可以被恢复