Web/DownLoadView.aspx.cs

(完整代码) 950B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace cosmos.Web
{
    public partial class DownLoadView : System.Web.UI.Page
    {
        protected int Id;   //全局变量Id
        protected cosmos.Model.Downloads model = new cosmos.Model.Downloads();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!int.TryParse(Request.Params["id"] as string, out this.Id))
            {
                Response.Write("<script>alert('您要查看的信息参数不正确或不存在!'),location.href='DownLoad.aspx';</script>");
                return;
            }

            cosmos.BLL.Downloads bll = new cosmos.BLL.Downloads();
            model = bll.GetModel(this.Id);//获得Id

            //浏览数+1
            bll.UpdateField(this.Id, "Click=Click+1");
        }

    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。