Web/ZhishiInfo.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
namespace Maticsoft.Web
{
public partial class ZhishiInfo : System.Web.UI.Page
{
int ZhiID = 0;
protected void Page_Load(object sender, EventArgs e)
{
InitDataZhiType();
if (Request.Params["ZhiID"] != null && Request.Params["ZhiID"] != "")
{
ZhiID = int.Parse(Request.Params["ZhiID"]);
Maticsoft.BLL.ProduZhiInfo nBll = new Maticsoft.BLL.ProduZhiInfo();
if (nBll.Exists(ZhiID) == false)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('对不起,该知识已被删除, - 。-!)</script>");
Response.Redirect("ZhishiInfo.aspx");
return;
}
SEO_HEAD();
}
else
{
Response.Redirect("ZhishiInfo.aspx");
}
}
private void InitDataZhiType()
{
Maticsoft.BLL.ProduTypeInfo pBll = new Maticsoft.BLL.ProduTypeInfo();
DataZhiType1.DataSource = pBll.GetAllList();
DataZhiType1.DataBind();
}
public void SEO_HEAD()
{
Maticsoft.BLL.ProduZhiInfo nBll = new Maticsoft.BLL.ProduZhiInfo();
Maticsoft.Model.ProduZhiInfo nModel = nBll.GetModel(ZhiID);
try
{
lblContent.Text = nModel.E_TxtContent;
lblCleckNum.Text = nModel.E_CreateTime.ToString();
lblNewTitle.Text = nModel.E_ZhiName;
lbllaiyuan.Text = nModel.E_Laiyuan;
try
{
Maticsoft.BLL.ProduTypeInfo tBll = new Maticsoft.BLL.ProduTypeInfo();
Maticsoft.Model.ProduTypeInfo tModel = tBll.GetModel(int.Parse(nModel.E_ZhiTypeID.ToString()));
lblTypeName.Text = tModel.E_ZhiTypeName;
lblTypeName2.Text = tModel.E_ZhiTypeName;
}
catch
{
}
后面还有 18 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
