
在前面我已经写了ASP的版本,最近一个项目中正好需要用json来填充下拉框,所以写了一个asp.net将数据库里的记录转换成json,代码如下:usingSystem; usingSystem.Collections.Generic; usingSystem.Text; usingSystem.Data; usingSystem.Data.SqlClient; namespaceOTC.Utility ...{ publicsealedclassJSONHelper ...{ /**//// ///获取JSON字符串 /// ///值 ...