Medical/Html/ajax/getselect.ashx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
namespace WebApplication.Html.ajax
{
/// <summary>
/// getselect 的摘要说明
/// </summary>
public class getselect : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
if (context.Request["type"] != null)
{
string html = string.Empty;
if (context.Request["type"] == "level")
{
DataTable dt = (DataTable)Admin.Tools.SysCache.ReturnCache("1000024_Level");
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
html += "<li>" + dt.Rows[i][0].ToString() + "</li>";
}
}
}
if (context.Request["type"] == "office")
{
DataTable dt = (DataTable)Admin.Tools.SysCache.ReturnCache("1000024_Office");
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
html += "<li>" + dt.Rows[i][0].ToString() + "</li>";
}
}
}
if (context.Request["type"] == "questiontype")
{
DataTable dt = (DataTable)Admin.Tools.SysCache.ReturnCache("1000020_QuestionType");
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
html += "<li>" + dt.Rows[i][0].ToString() + "</li>";
}
}
}
context.Response.Write("操作成功!@@@" + html);
}
else
{
context.Response.Write("参数错误!@@@");
}
}
后面还有 10 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
