|
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/a99112df/ca2a8923/ |
?#pragma checksum "D:\wwwroot\ldxynb\wwwroot\back\Class\Ajax_GetClass4.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "67BA1BB4442001030B593588876F336C"
#line 1 "D:\wwwroot\ldxynb\wwwroot\back\Class\Ajax_GetClass4.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_GetClass4 : 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["id3"] == null)
{
this.Response.StatusCode = 500;
this.Response.End();
return;
}
int id3 = Int32.Parse(this.Request.Form["id3"].Trim());
CoreClass.DBCommon dbc = new DBCommon();
CoreClass.PublicFunction pubfun = new PublicFunction();
string sql = "select classid,ClassName From " + pubfun.GetClassCol(pubfun.GetClassChannelid(id3)) + " Where tid=" + id3.ToString() + " and cid=3 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