Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string uid = Request.QueryString["uid"];
            string cbk = Request.QueryString["callback"];//jsonp

            if (!string.IsNullOrEmpty(uid))
            {
                string json = DBFile.GetAllComplete(int.Parse(uid));
                //json = json.Replace("\\r\\n", string.Empty);
                json = HttpUtility.UrlEncode(json);
                //UrlEncode会将空格解析成+号
                json = json.Replace("+", "%20");
                Response.Write(json);
                //Response.Write(callback + "(" + json + ")");
            }
        }