嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
简易聊天室,入门级示例,适合新手,运行时 请以管理员身份运行该项目
protected void Button1_Click(object sender, EventArgs e)
{
Label _uid = new Label();
_uid.Text = Session["uid"].ToString();
Label _dt = new Label();
_dt.Text = DateTime.Now.ToLongTimeString();
Label _wrods = new Label();
_wrods.Style.Add("color", ddl_color.SelectedValue);
_wrods.Text = TextBox1.Text;
Literal lbr = new Literal();
lbr.Text = "<br/>";
Application.Lock();
((Panel)Application["chat"]).Controls.AddAt(0, lbr );
((Panel)Application["chat"]).Controls.AddAt(0, _wrods);
((Panel)Application["chat"]).Controls.AddAt(0, _dt);
((Panel)Application["chat"]).Controls.AddAt(0, _uid);
Application.UnLock();
}
protected void Page_Load(object sender, EventArgs e)
{
if(Application["chat"]==null)
{ Application["chat"] = new Panel(); }
holder.Controls.Add((Panel)Application["chat"]);
}