2、请求数据的ASP.NET网页后台代码(前台清空就剩Page命令那一行就可以了)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAO;
using System.Data;
using System.Text;
using System.Reflection;
public partial class TreeSource_GetTreeData : System.Web.UI.Page
{
SqlHelper helper = new SqlHelper();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.GetMenuByParentID();
}
}
private void GetMenuByParentID()
{
if (ParentID != null)
{
DataTable dt = helper.FillDataTable(String.Format(
"SELECT * FROM SunZonTMSMenu WHERE ParentMenuID={0} AND IsOpen=1", ParentID.ToString()
));
IList<Menu> menu = new List<Menu>();
if (dt != null && dt.Rows.Count > 0)
&
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>