Web/news_info.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web;
using Common;
using System.Text;
namespace Web
{
public partial class news_info : System.Web.UI.Page
{
public string url = "";
public string spurl = "";
public string webtitle = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
int id;
int pid;
int fid;
if (int.TryParse(Request.QueryString["fid"], out fid))
{
if (int.TryParse(Request.QueryString["id"], out id))
{
BLL.article_category bllcat = new BLL.article_category();
Model.article_category model1 = bllcat.GetModel(fid);
pid = model1.parent_id;
if (pid != 0)
{
Model.article_category model = bllcat.GetModel(pid);
Litlocal1.Text = " >><a href='news_index.aspx?id=" + pid + "'>" + model.title + "</a> ";
Litlocal3.Text = model.title;
Litlocal2.Text = " >><a href='news_list.aspx?id=" + fid + "&pid=" + pid + "'>" + model1.title + "</a> ";
webtitle = model.title;
}
else
{
Litlocal2.Text = " >><a href='news_list.aspx?id=" + fid + "&pid=" + pid + "'>" + model1.title + "</a> ";
webtitle = model1.title;
Litlocal3.Text = model1.title;
}
Bind();
}
}
else
{
Response.Redirect("index.aspx");
}
}
}
private void Bind()
{
后面还有 50 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
