private void EditData(string id, HttpContext context) { var stuids = context.Request["StuIds"]; var courseId = context.Request["CourseId"]; var msg = ""; if (!string.IsNullOrEmpty(stuids)) { var stu = stuids.Split('|'); var questionBll = new BLL.Questionnaire(); var result = questionBll.EditQuestions(stu, courseId); if (!result) { msg = "保存失败!"; } } // var str = JsonConvert.SerializeObject(new { success = result, errorMsg = msg}); context.Response.Write(msg); }