using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class LeftMenu : System.Web.UI.UserControl
{
public static DataTable yiji;
private string ReadType1;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
bindyiji();
}
}
///
/// 读出一级类别
///
public void bindyiji()
{
ReadType1 = " select * from v3_m_category where parentid =0 and (visiable =2 or visiable =3)";// 读出一级类别
yiji = new common().ExcuteReader(ReadType1).Tables[0];
}
///
/// 读出二级类别
///
///
///
public DataTable bind(string prientids)
{
string sqlstr2 = " select * from v3_m_category where parentid='" + prientids + "'";// 读出二级类别
return new common().ExcuteReader(sqlstr2).Tables[0];
}
///
/// 读出三级商品
///
///
///
public DataTable ReadGoods(string Goodsid)
{
string str = "select * from v3_merchandises where cid = " + Goodsid;
return new common().ExcuteReader(str).Tables[0];
}
}