WebApplication/Html/ajax/getkeshi.ashx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Web;
using System.Xml;
namespace WebApplication.Html.ajax
{
/// <summary>
/// getkeshi 的摘要说明
/// </summary>
public class getkeshi : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
if (context.Request["channelid"] != null)
{
Model.Models.GZXX_Model model = new Model.Models.GZXX_Model();
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
model = bll.GetModelInfo(int.Parse(context.Request["channelid"].ToString()));
DataTable dt = LoadModelDataTable(model.fieldsxml);
string cname = "";
if (context.Request["channelid"].ToString() == "1000048") { cname = "c83"; }
else { cname = "c74"; }
string html = "";
for (int i = 0; i < dt.Rows.Count; i++)
{
if (dt.Rows[i]["ControlId"].ToString().ToLower() == "keshi")
{
string[] arr = dt.Rows[i]["Option"].ToString().Replace("\r\n", "@").Split(new char[] { '@' });
for (int j = 0; j < arr.Length; j++)
{
if (context.Request["keshi"] != null)
{
string bijiao = context.Server.UrlDecode(context.Request["keshi"]) ;
if (bijiao == arr[j])
{
html += "<li><a class=\"on\" href=\"" + cname + ".html?keshi=" + arr[j] + "\">" + arr[j] + "</a></li>";
}
else
{
html += "<li><a class=\"\" href=\"" + cname + ".html?keshi=" + arr[j] + "\">" + arr[j] + "</a></li>";
}
}
else
{
html += "<li><a class=\"\" href=\"" + cname + ".html?keshi=" + arr[j] + "\">" + arr[j] + "</a></li>";
}
}
}
}
context.Response.Write("Success@@@" + html);
}
else
{
context.Response.Write("Error@@@");
后面还有 81 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
