温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:ASP.NET三层架构留言本项目源码
当前文件:
MVCGuestBook/WEB/Reply.aspx.cs,打开代码结构图
MVCGuestBook/WEB/Reply.aspx.cs,打开代码结构图1using System; 2
using System.Collections; 3
using System.Configuration; 4
using System.Data; 5
using System.Web; 6
using System.Web.Security; 7
using System.Web.UI; 8
using System.Web.UI.HtmlControls; 9
using System.Web.UI.WebControls; 10
using System.Web.UI.WebControls.WebParts; 11
//该源码下载自www.51aspx.com(51aspx.com) 12
13
namespace GustBook.WEB 14
{ 15
public partial class Reply : System.Web.UI.Page 16
{ 17
protected void Page_Load(object sender, EventArgs e) 18
{ 19
20
} 21
22
protected void Button1_Click(object sender, EventArgs e) 23
{ 24
GustBook.DBUtility.ShowMessagae sm = new GustBook.DBUtility.ShowMessagae(); 25
GustBook.Model.Content mo = new GustBook.Model.Content(); 26
mo.Id=int.Parse(Request.QueryString["id"]); 27
mo.Reply = FCKeditor1.Value; 28
29
GustBook.BLL.Admin bll = new GustBook.BLL.Admin(); 30
if (bll.uAddRe(mo)) 31
sm.ShowRedirect("回复成功!", "Default.aspx"); 32
else sm.Show("回复不成功!"); 33
} 34
} 35
} 36





}
}