Пример #1
0
        public void ProcessRequest(HttpContext context)
        {
            string method  = context.Request.QueryString["Method"].ToString();
            string ClassId = context.Request.QueryString["ClassId"].ToString();
            string userId  = context.Request.QueryString["userId"].ToString();
            string SortId  = context.Request.QueryString["SortId"].ToString();
            string res     = "";

            try
            {
                if (method == "Clear")
                {
                    //国地税题目
                    publicmethod p        = new publicmethod();
                    string       path     = System.Web.Configuration.WebConfigurationManager.AppSettings["Practicepath"] + "/APIPractice/Chongzuo.asmx/GetTongYongTAXData?UserId=" + userId + "&ClassId=" + ClassId + "&SortId=" + SortId + "&courseId=" + ConfigurationManager.AppSettings["CourseId"];
                    string       resut    = p.HttpGetFunction(path).Replace("+", "%2B").Replace("#", "%23").Replace("=", "%3D").Replace("&", "%26");
                    string       billpath = System.Web.Configuration.WebConfigurationManager.AppSettings["tikupath"] + "/GTX/GDTXTYTAXUserYSBQC/RedoAllQuestionsTYTAX";
                    res = p.HttpPost(billpath, string.Format("jsonData={0}", resut));
                }
            }
            catch
            {
            }
            context.Response.Clear();
            context.Response.ContentType = "text/html";
            context.Response.Write(res);
        }