Web/IndexPage/MasterPage.master.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class IndexPage_MasterPage : System.Web.UI.MasterPage
{
Bll.vProClassBLL cB = new Bll.vProClassBLL();
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = (DataTable)Session["shop"];
ShopingCar pc = new ShopingCar();
Panel pn1 = (Panel)this.Login1.FindControl("Panel2");
Panel pn = (Panel)this.Login1.FindControl("Panel1");
Label La = (Label)this.Login1.FindControl("Panel2").FindControl("Label1");
Label La1 = (Label)this.Login1.FindControl("Panel2").FindControl("Label2");
pn1.Visible = false;
La1.Text = " 0.00";
if (Session["cus"] != null)
{
pn1.Visible = true;
La.Text=Session["cus"].ToString();
La1.Text = pc.GetSum(dt).ToString();
pn.Visible = false;
}
}
private void RepeaterBind(Repeater rp)
{
//DataSet dt = cB.GetTable("select * from v_productClass where faName=null ", "select * from v_productClass where faName<>null");
//dt.Relations.Add("pc", dt.Tables[0].Columns["productClassID"], dt.Tables[0].Columns["productClassParentID"]);
//rp.DataSource = dt.Tables[0];
//rp.DataBind();
}
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
