我正在尝试使用 json 创建多个目录。如何在 asp.net 中执行此操作。我的连接类做了一个 jsonspselect 的数学。但我在 asp.net 中使用多个根目录
[WebMethod]
public string GetPropSubType()
{
try
{
objutl = new clsUtility();
JSON_Out = objutl.JSONspselect("lspw_PropSubType ");
}
catch (Exception e)
{
JSON_Out = "Server Error";
}
finally
{
}
//string json = "{\"name\":\"Joe\"}";
//Response.Clear();
//Response.ContentType = "application/json; charset=utf-8";
//Response.Write(JSON_Out);
//Response.End();
Context.Response.Clear();
Context.Response.ContentType = "application/json; charset=utf-8";
Context.Response.Output.Write(JSON_Out);
Context.Response.End();
return JSON_Out;
}