protected void Button1_Click(object sender, EventArgs e)
 {
     String text = this.TextBox1.Text;
     MessageRepository msr = new MessageRepository();
     message ms = new message();
     ms.content = text;
     msr.Insert(ms);
     ShowPopUpMsg("已发布信息");
 }
Esempio n. 2
0
 public String createMessage(message message)
 {
     if (messageDAO.Insert(message) != null)
        return "success";
        else return "fail";
 }