CommonBussiness/admin/areaInfo.aspx.cs

(开头部分) 23KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using DAL;
using System.Data;
using System.Text;

namespace CommonBussiness.admin
{
    public partial class areaInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["loginUser"] == null)
                {
                    Response.Redirect("/admin/login.aspx");
                    return;
                }
                LoadOneInfo();
                //GetCity("1");
            }
        }
        /// <summary>
        /// 取消热门地区
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnCancelCity_Click(object sender, EventArgs e)
        {
            string hidValue = this.hidTwo.Value.TrimEnd(',');
            string pid = this.ddlOne.SelectedValue;
            if (hidValue.Length == 0)
            {
                ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "", "alert('请选择要取消热门的信息!');", true);
                return;
            }
            string[] arr = hidValue.Split(',');
            if (arr.Length > 1)
            {
                ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "", "alert('只能选择一项信息进行设置!');", true);
                return;
            }
            int num = AreaInfoService.SetHot(Convert.ToInt32(arr[0]), 0);
            if (num > 0)
            {

                ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "", "alert('设置成功!');", true);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "", "alert('设置失败!');", true);
            }
            GetTwo(pid);
            //加载热门信息
后面还有 545 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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