Response响应请求操作

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;

namespace WeiXin.Core
{
    public class ResponseHelper
    {
        public static void Success(string Data)
        {
            HttpContext context = HttpContext.Current;
            context.Response.ContentType = "text/xml";
            context.Response.ContentEncoding = Encoding.UTF8;
            context.Response.Write(Data);
        }   

    }
}
原文地址:https://www.cnblogs.com/slu182/p/4252751.html