您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->网上办公系统源码>>BBS/BBS_AddReply.aspx.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:网上办公系统源码


当前文件路径:OfficeOnline/BBS/BBS_AddReply.aspx.cs 文件类型
普通视图
		            
1using System; 2using System.Data; 3using System.Configuration; 4using System.Collections; 5using System.Web; 6using System.Web.Security; 7using System.Web.UI; 8using System.Web.UI.WebControls; 9using System.Web.UI.WebControls.WebParts; 10using System.Web.UI.HtmlControls; 11 12public partial class BBS_BBS_AddReply : System.Web.UI.Page 13{ 14 WebService webService = new WebService(); 15 string strSql; 16 protected void Page_Load(object sender, EventArgs e) 17 { 18 if (Session["UserID"] == null || Session["UserLevel"] == null) 19 { 20 Response.Redirect("~/Error.aspx"); 21 } 22 strSql = "Select BM_Title from z_BbsMessage where BM_ID = '" + Request.QueryString["bid"] + "';"; 23 DataTable table = webService.ExcuteSelect(strSql); 24 this.lblTitle.Text = table.Rows[0]["BM_Title"].ToString(); 25 } 26 protected void btnSubmit_Click(object sender, EventArgs e) 27 { 28 if (this.tbContent.Text == "") 29 { 30 this.lblMsg.Text = "请输入完整信息!"; 31 } 32 else 33 { 34 //插入回复信息数据表 35 strSql = "Insert into z_Reply(BBS_ID,Reply_Content,Reply_AddDate,Reply_AddPersonID) values ('" + Request.QueryString["bid"] + "','" + this.tbContent.Text + "','" + DateTime.Now + "','" + Session["UserID"].ToString() + "');"; 36 webService.ExcuteSql(strSql); 37 //修改主题表中的回复数 38 strSql = "Update z_BbsMessage set BM_Replies=BM_Replies+1 where BM_ID='" + Request.QueryString["bid"] + "';"; 39 webService.ExcuteSql(strSql); 40 Response.Redirect("BBS_Info.aspx?bid="+Request.QueryString["bid"]); 41 } 42 } 43} 44
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:网上办公系统源码

- Mibo生产控制管理系统.NETV1.2

- 千狐网站管理系统1.01

- Ajax之用户注册实例源码

- 自由游戏币交易下单系统源码

- 小E单班同学录1.1源码

- C#发现之旅ASP.NET源码

- MagicAjax入门程序之无刷新显..

- Badgirl blog V1.0源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号