- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
public partial class Chat : System.Web.UI.Page
{
...
private List<string> Messages
{
get { return (List<string>)Cache["messages"]; }
set { Cache.Insert("messages", value); }
}
protected void btnAddMessage_Click(object sender, EventArgs e)
{
if (this.Messages != null)
{
this.Messages.Add(string.Format("{0} say :{1}\n", this.UserName, tbUserMessage.Text));
// wai... oh shi---
this.Messages = this.Messages;
}
}
}
nikelin 11.10.2010 13:30 # −5
Lennis 11.10.2010 15:33 # 0
mozg_raka 12.10.2010 20:36 # 0
Lure Of Chaos 11.10.2010 18:18 # −1
не, не хочу такой чат.
src 22.10.2010 23:37 # 0
dreaktor 14.11.2010 03:08 # +1
src 14.11.2010 18:19 # 0