|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/6b11be23/e503b68d/ |
?#pragma checksum "D:\wwwroot\keman\wwwroot\back\Class\Ajax_GetClass5.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7AF630F402C137D8E7CDAAAE11B1F936"
#line 1 "D:\wwwroot\keman\wwwroot\back\Class\Ajax_GetClass5.aspx.cs"
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using CoreClass;
public partial class Back_Class_Ajax_GetClass5 : System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e)
{
this.Response.Cache.SetCacheability(HttpCacheability.NoCache);//屏蔽缓存
if (Request.HttpMethod.ToUpper() != "POST")
{
this.Response.StatusCode = 400;
this.Response.End();
return;
}
if (this.Request.Form["id4"] == null)
{
this.Response.StatusCode = 500;
this.Response.End();
return;
}
int id4 = Int32.Parse(this.Request.Form["id4"].Trim());
CoreClass.DBCommon dbc = new DBCommon();
CoreClass.PublicFunction pubfun = new PublicFunction();
string sql = "select classid,ClassName From " + pubfun.GetClassCol(pubfun.GetClassChannelid(id4)) + " Where tid=" + id4.ToString() + " and cid=4 Order By OrderNum ASC";
this.Response.ContentType = "text/xml";
this.Response.Write("<?xml version=\"1.0\" encoding=\"gb2312\" ?>");
this.Response.Write("<response>");
OleDbDataReader dr = dbc.GetDataReaderBySql(sql);
while (dr.Read())
{
this.Response.Write("<class id=\"" + dr["classid"].ToString() + "\" name=\"" + Server.HtmlEncode(dr["ClassName"].ToString()) + "\" />");
}
this.Response.Write("</response>");
dr.Close();
}
}
#line default
#line hidden