|
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_GetClass1.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7ADF2DB43C7BF909D33A2A1112428AD1"
#line 1 "D:\wwwroot\ldxynb\wwwroot\back\Class\Ajax_GetClass1.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_GetClass1 : 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;
}
CoreClass.DBCommon dbc = new DBCommon();
CoreClass.PublicFunction pubfun = new PublicFunction();
string sql = "select classid,ClassName From " + pubfun.GetClassCol(Int32.Parse(this.Request.Form["channelid"].Trim())) + " Where ChannelId=" + Int32.Parse(this.Request.Form["channelid"].Trim()).ToString() + " and tid=0 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