protected void ButtonNine_Click(object sender, EventArgs e) { if (WeTextBoxFive.Text.Trim() == "") { Label1.Text = "请输入关键字"; return; } try { string PathFile = System.IO.Path.Combine(Server.MapPath("~"), "USER_DIR\\sysuser\\MyPost\\txt\\" + WeTextBoxFive.Text.Trim() + ".dll"); //图文 关键词回复目录); TextMsgData CMsgData = new TextMsgData(); CMsgData.Content = WeTextBoxOne.Text; CMsgData.SaveFile(PathFile); FileManager1.Visible = true; TextEditor.Visible = false; Label1.Text = "保存成功!"; FileManager1.FileViewMode = IZ.WebFileManager.Components.FileViewRenderMode.Icons; } catch { Label1.Text = "保存失败,关键字中不能有特殊字符"; } }