28 lines
745 B
C#
28 lines
745 B
C#
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("ûÕÒµ½ÄúÒªµÄÐÅÏ¢");
|
|
}
|
|
|
|
|
|
}
|
|
} |