using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using BookingBuss.Booking; using System.Configuration; public partial class newsmore : System.Web.UI.Page { private BookingBean bookingBean; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //Maticsoft.BLL.newsbig bll1 = new Maticsoft.BLL.newsbig(); // DataSet ds1 = bll1.GetList(""); //this.Repeater1.DataSource = ds1.Tables[0].DefaultView; // this.Repeater1.DataBind(); string strFID = string.Empty; if (Request.QueryString["id"] != null) strFID = Request.QueryString["id"]; if (!_360safe.CheckBadStr(strFID)) { Maticsoft.BLL.newscontent bll = new Maticsoft.BLL.newscontent(); DataSet ds = bll.GetList("FID='" + strFID + "'"); if (ds != null) { Repeater2.DataSource = ds.Tables[0].DefaultView; Repeater2.DataBind(); } else { MessageBox.Show(this, "没有找到你要的内容"); return; } } } } protected void loginOut_Click(object sender, EventArgs e) { this.bookingBean = (BookingBean)Session["BookingBean"]; this.bookingBean.User = null; } //登录 protected void goLogin_Click(object sender, EventArgs e) { Session["loginPage"] = "newscontent.aspx"; Response.Redirect("login.aspx"); } protected string addImageUrl(string strContent) { string strImgServer = ConfigurationManager.AppSettings["imgserverip"].ToString(); string strRep = "/RMApp/uploadfile/"; string strNewRep = strImgServer + "/uploadfile/"; strContent = strContent.Replace(strRep, strNewRep); return strContent; } }