C#管理系统

来源:百度知道 编辑:UC知道 时间:2024/06/10 01:28:59
我要做个简单的管理系统,要把label中输入文字或数字按下button后label中的文字会出现在ListView的表格中,但我不知道其中的代码,请高手教我QQ228500661,答案11.
listview.item.add(label.text);代码错的,系统显示是无效的表达式

protected void Page_Load(object sender,EventArgs e){
Label1.Text = (string)Applicatio["chat_contents"];
}
protected void Button1_Click(object sender, EventArgs e)
{
string mywords = TextBox1.Text.ToString();
Application.Lock();
Application["chat_contents"] = Application["chat_contents"] + "<br/>"+ mywords;
Label1.Text = (string)Application["chat_contents"];
Application.UnLock();
}
//只要在前台拖个label,textbox,button.就好了.

实在没时间,有时间我给你做,如果你不急,7月11号后,我帮你!

listview.item.add(label.text)