protected void rep_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
HiddenField hfproid = e.Item.FindControl("hfproid") as HiddenField;
Literal Litmarkete = e.Item.FindControl("Litmarkete") as Literal;
Literal Litproname = e.Item.FindControl("Litproname") as Literal;
Literal Litmember = e.Item.FindControl("Litmember") as Literal;
Literal Litvip = e.Item.FindControl("Litvip") as Literal;
xuning.shop.Model.product p = new xuning.shop.DAL.product().GetModel(int.Parse(hfproid.Value));
if (p != null)
{
Litproname.Text = "<a target='_blank' href='../pro.aspx?id="+p.id+"'>"+p.proname+"</a>";
Litmarkete.Text = p.marketprice.ToString("c2");
Litmember.Text = p.memberprice.ToString("c2");
Litvip.Text = p.vipprice.ToString("c2");
}
}
}