CSWSite/problemc.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DBUtility;
using CSWBLL;
using CSWModel;
namespace CSWSite
{
public partial class anlic : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindData();
}
}
private void BindData()
{
string strPID=GetMes.GetRequestQuery(Request,"apid");
if (!String.IsNullOrEmpty(strPID))
{
List<Modelcontents> lt = BLLcontents.ReadContentsById(strPID);
lbAuthor.Text = lt[0].csw_author;
lbChannelName.Text = BLLcontents.SelectClassNameByTypeId(lt[0].csw_typeId.ToString());
lbNewsTitle.Text = lt[0].csw_title;
lbtimes.Text = Convert.ToDateTime(lt[0].csw_times).ToString("d");
lbTitle.Text = lt[0].csw_title;
lbclick.Text = lt[0].csw_click.ToString();
ltNewsContents.Text = lt[0].csw_contents;
BLLcontents.UpdateClick(strPID);//更新点击次数
string webTitle = lt[0].csw_title;
string webdescription = BLLcommon.SelectFieldInfoByFieldName("csw_description", "csw_webinfo", "id", "1");
string webkeywords = BLLcommon.SelectFieldInfoByFieldName("csw_keywords", "csw_webinfo", "id", "1");
BLLcommon.WebHead(this, webTitle, webdescription, webkeywords);
}
else
{
MessageBox.ShowAndRedirect(this, "无效链接..", "index.aspx");
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
