protected void Page_Load(object sender, EventArgs e)
{
form1.Style.Add(HtmlTextWriterStyle.BackgroundColor, Profile.PreferredBackgroundColor.ToString());
}//情况是我的背景已经存入数据库中,这点可以排除,因为我用的this.lable1.backcolor=Profile.PreferredBackgroundColor已经成功,
现在就是想问下,窗体怎么显示背景色,用C#,在WEB页中控制,不是WINFORM,谢谢 protected void Button1_Click(object sender, EventArgs e)
{
Profile.PreferredBackgroundColor = Color.FromName(ddlColor.SelectedValue);
Response.Redirect(Request.Url.LocalPath);
}
{
form1.Style.Add(HtmlTextWriterStyle.BackgroundColor, Profile.PreferredBackgroundColor.ToString());
}//情况是我的背景已经存入数据库中,这点可以排除,因为我用的this.lable1.backcolor=Profile.PreferredBackgroundColor已经成功,
现在就是想问下,窗体怎么显示背景色,用C#,在WEB页中控制,不是WINFORM,谢谢 protected void Button1_Click(object sender, EventArgs e)
{
Profile.PreferredBackgroundColor = Color.FromName(ddlColor.SelectedValue);
Response.Redirect(Request.Url.LocalPath);
}
{
form1.Style.Add(HtmlTextWriterStyle.BackgroundColor, "red");
}是好使的阿