www.pudn.com > chat.rar > speak.aspx.cs, change:2011-10-12,size:907b


´╗┐using System; 
using System.Collections; 
using System.Data; 
using System.Web; 
using System.Web.SessionState; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.HtmlControls; 
 
public partial class speak : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 
    protected void Button1_Click(object sender, EventArgs e) 
    { 
        Application.Lock(); 
        Application["show"]=TextBox1.Text+"<br>"+Application["show"]; 
        Application.UnLock(); 
        TextBox1.Text = ""; 
        string  username=Session["user_name"].ToString(); 
        string createtime = System.DateTime.Now.ToLongTimeString(); 
        string content = TextBox1.Text; 
        Application["username"] = username; 
        Application["createtime"] = createtime; 
        Application["content"] = content; 
        TextBox1.Text = ""; 
    } 
}