日期:2014-05-16 浏览次数:20592 次
private MySqlConnection con = null;
private int page = 1;
private int totalPage;
private int count = 3;
protected void Page_Load(object sender, EventArgs e)
{
this.getTotalPage();
if(!Page.IsPostBack)
{
last_Click(null, null);
}
if (!IsPostBack)
{
DrLB();
DrHD();
DrPP();
DrHS();
DrNMC();
}
}
public void DrLB() //类别
{
DB db = new DB();
string sqlstr = "SELECT CategoryID,Category FROM Category ";
DataTable dt = db.reDt(sqlstr);
LB.DataSource = dt;
LB.DataBind();
}
public void DrPP() //品牌
{
DB db = new DB();
string sqlstr = "SELECT VarietiesID,Varieties,VCID FROM Varieties ";
DataTable dt = db.reDt(sqlstr);
PP.DataSource = dt;
PP.DataBind();
}
public void&n