platform/ShowNews.aspx.cs

28 lines
745 B
C#
Raw Permalink Normal View History

2024-02-18 23:33:54 +08:00
using System;
using System.Web.UI;
using DeiNiu.wms.Logical;
public partial class ShowNews : Page
{
protected void Page_Load(object sender, EventArgs e)
{
string newsID = Request.QueryString["newsID"];
LPublicNews logic = new LPublicNews();
try
{
logic.GetPublicNews.ID = Convert.ToInt32(newsID) ;
logic.GetPublicNews.getModel();
lbTitle.Text = logic.GetPublicNews.news_title ;
txtContent.Text = logic.GetPublicNews.news_content;
this.Title = logic.GetPublicNews.news_title;
}
catch (Exception)
{
news.Visible = false;
Response.Write(<>ҵ<EFBFBD><D2B5><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>Ϣ");
}
}
}