using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace JumboTCMS.WebFile.PeiXue { public partial class Content : Default { protected new void Page_Load(object sender, EventArgs e) { } public string GetClass(string ccid,string cid) { doh.Reset(); if (string.IsNullOrWhiteSpace(cid)) { doh.SqlCmd = "select Title from jcms_normal_channel where Id=" + ccid; } else { doh.SqlCmd = "select Title from jcms_normal_class where Id="+cid; } return doh.GetDataTable().Rows[0][0].ToString(); } } }