InfoView.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:1k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections.Generic;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- public partial class InfoView : System.Web.UI.Page
- {
- /// <summary>
- /// 信息模板
- /// </summary>
- Model.INFONews MB = new Model.INFONews();
- /// <summary>
- /// 信息业务
- /// </summary>
- BLL.INFONews BB = new BLL.INFONews();
- /// <summary>
- /// 标题
- /// </summary>
- public string TitleStr = "";
- /// <summary>
- /// 内容
- /// </summary>
- public string ContentStr = "";
- /// <summary>
- /// 回复
- /// </summary>
- public string RepBackStr = "";
- protected void Page_Load(object sender, EventArgs e)
- {
- LoginLogic.MatchLoad("../", "InfoView");
- if (!IsPostBack)
- {
- if(Request.QueryString["id"]!=null)
- {
- MB = BB.GetModel(int.Parse(Request.QueryString["id"].ToString()));
- TextBoxContent.Text = MB.NR;
- TextBoxTitle.Text = MB.ZT;
-
- }
- }
- }
-
- }