如何根据条件改变datalist的ItemTemplate模板里的文字的颜色
1个回答
展开全部
protected void Button1_Click(object sender, EventArgs e)
{
DataList1.ForeColor = System.Drawing.Color.Red;
}
protected void Button2_Click(object sender, EventArgs e)
{
DataList1.ForeColor = System.Drawing.Color.Yellow;
}
protected void Button3_Click(object sender, EventArgs e)
{
DataList1.ForeColor = System.Drawing.Color.Pink;
}
{
DataList1.ForeColor = System.Drawing.Color.Red;
}
protected void Button2_Click(object sender, EventArgs e)
{
DataList1.ForeColor = System.Drawing.Color.Yellow;
}
protected void Button3_Click(object sender, EventArgs e)
{
DataList1.ForeColor = System.Drawing.Color.Pink;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询