Handler/CascadeSchool_handler.ashx
(完整代码) 1KB<%@ WebHandler Language="C#" Class="CascadeSchool_handler" %>
using System;
using System.Web;
public class CascadeSchool_handler : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";
if (context.Request["cascadeSchool"] != null)
{
RecordDataService.Teacher_Service service = new RecordDataService.Teacher_Service();
System.Data.DataTable data = service.Fill(context.Request["cascadeSchool"].ToString());
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append(String.Format("<option value='' selected='selected'>选择</option>"));
foreach (System.Data.DataRow row in data.Rows)
sb.Append(String.Format("<option value='{0}'>{1}</option>", row[0], row[1]));
Jayrock.Json.JsonObject json = new Jayrock.Json.JsonObject();
json.Accumulate("state", 1);
json.Accumulate("value", sb.ToString());
context.Response.Write(json);
context.Response.End();
}
}
public bool IsReusable {
get {
return false;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。