Web/article_album.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace Web
{
public partial class article_album : Web.UI.BasePage
{
public int kindId = (int)Channel.Article;
public int Id;
public Model.Article model = new Model.Article();
public int memberid = 0;
public int i, curpage, pagecount;
public int page; //当前页
public string ImgUrl = "";
public string UpImgUrl = "";
public string DownImgUrl = "";
public string UpUrl = "";
public string DownUrl = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!int.TryParse(Request.Params["id"] as string, out Id))
{
Server.Transfer("/error.aspx");
return;
}
BLL.Article bll = new BLL.Article();
if (!bll.Exists(Id))
{
Server.Transfer("/error.aspx");
return;
}
//取得当前页
if (!int.TryParse(Request.Params["page"] as string, out page))
{
page = 1;
}
//获得当前的页数
curpage = Convert.ToInt32(page);//当前页数
UpPager();
Pager();
if (Session["MemberLogin_Id"] != null)
{
Model.Member hymodel = new Model.Member();
BLL.Member hybll = new BLL.Member();
hymodel = hybll.GetModel(int.Parse(Session["MemberLogin_Id"].ToString()));
memberid = hymodel.Id;
}
model = bll.GetModel(Id);
//浏览数+1
bll.UpdateField(this.Id, "Click=Click+1");
}
public void UpPager()
{
//获取页面内容
BLL.ArticleAlbum bll = new BLL.ArticleAlbum();
DataSet ds = bll.GetList("PictureId=" + this.Id);
后面还有 102 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。