Web/Manage_Vaisi/Partner.aspx.cs

(开头部分) 8KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using System.Data;

public partial class Manage_Vaisi_Partner : System.Web.UI.Page
{
    private static string iid = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Vaisi_User"] == null)
        {
            X.Redirect("Login.aspx", "登录超时,请重新登录...");
        }
        if (!X.IsAjaxRequest)
        {
            Bind();
        }
    }

    public void Bind()
    {
        this.Store1.DataSource = Getfriend();
        this.Store1.DataBind();
    }
    protected void Store1_RefershData(object sender, StoreRefreshDataEventArgs e)
    {
        Bind();
    }
    public static IList<Vaisi_friendModel> Getfriend()
    {
        try
        {
            string sql = "select * from vaisi_friend where type=6";
            IList<Vaisi_friendModel> list = new List<Vaisi_friendModel>();
            DataTable table = SqlHelper.GetScalarListTable(sql);
            foreach (DataRow row in table.Rows)
            {
                Vaisi_friendModel friend = new Vaisi_friendModel();
                friend.Id = Convert.ToInt32(row["id"]);
                friend.Title = Convert.ToString(row["title"]);
                friend.Imgurl = Convert.ToString(row["imgurl"]);
                friend.Htmlurl = Convert.ToString(row["htmlurl"]);
                list.Add(friend);
            }
            return list;
        }
        catch (Exception)
        {
            return null;
        }
    }

    protected void Btn_AddPartner_Click(object sender, EventArgs e)
    {
        try
后面还有 175 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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