服務端H.ashx
複製程式碼
程式碼如下:
using System;
using System.Web;
public class H : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";
string result = context.Request.QuString. "jsoncallback"] "({"name":"測試編號為","openid":"123456789"})";
context.Response.Clear();
context.Response.Write (result);
context.Response.End();
}
public bool IsReusable {
get { return falsese }; } }