boguCms/App_Admin/case/Default.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using AccessDal;
using System.IO;

public partial class App_Admin_case_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GetDrop();
            GetPage();
        }
    }
    protected void GetPage()
    {
        if (dropcol.SelectedValue == "0")
        {
            AspNetPager1.RecordCount = Case.GetCount();
            int StartRecord = AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1);
            int MaxRecord = AspNetPager1.PageSize;
            gridinfo.DataSource = Case.GetList(StartRecord, MaxRecord);
            gridinfo.DataBind();
        }
        else
        {
            int cid = Convert.ToInt32(dropcol.SelectedValue);
            AspNetPager1.RecordCount = Case.GetCount(cid);
            int StartRecord = AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1);
            int MaxRecord = AspNetPager1.PageSize;
            gridinfo.DataSource = Case.GetList(cid,StartRecord, MaxRecord);
            gridinfo.DataBind();
        }
        for (int i = 0; i < gridinfo.Rows.Count; i++)
        {
            Image caseimg = (Image)gridinfo.Rows[i].FindControl("caseimg");
            HiddenField hid = (HiddenField)gridinfo.Rows[i].FindControl("hid");

            if (hid.Value == "")
            {
                caseimg.ImageUrl = "/userimg/nopop.gif";
            }
            else
            {
                caseimg.ImageUrl = hid.Value;
            }
        }
    }
    protected void addbtn_Click(object sender, EventArgs e)
    {
        Response.Redirect("CaseItem.aspx");
    }
    protected void GetDrop()
    {
        dropcol.DataSource = CaseCol.GetList(0, 0);
后面还有 59 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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