CommonBussiness/admin/weiruhuiSet.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DAL;
using Model;
using System.Text;
using System.IO;
namespace CommonBusiness.admin
{
public partial class weiruhuiSet : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["loginUser"] == null)
{
Response.Redirect("/admin/login.aspx");
return;
}
LoadInfo();
}
}
/// <summary>
/// 加载信息
/// </summary>
private void LoadInfo()
{
this.content1.Value = BaseConfigService.GetById(5);
this.content2.Value = BaseConfigService.GetById(6);
this.content3.Value = BaseConfigService.GetById(7);
this.content4.Value = BaseConfigService.GetById(8);
this.content5.Value = BaseConfigService.GetById(9);
this.content6.Value = BaseConfigService.GetById(10);
}
/// <summary>
/// 保存事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Button1_Click(object sender, EventArgs e)
{
BaseConfigService.SetValue(5, this.content1.Value.Trim().Replace("'", "\""));
BaseConfigService.SetValue(6, this.content2.Value.Trim().Replace("'", "\""));
BaseConfigService.SetValue(7, this.content3.Value.Trim().Replace("'", "\""));
BaseConfigService.SetValue(8, this.content4.Value.Trim().Replace("'", "\""));
BaseConfigService.SetValue(9, this.content5.Value.Trim().Replace("'", "\""));
BaseConfigService.SetValue(10, this.content6.Value.Trim().Replace("'", "\""));
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "", "alert('保存成功!');", true);
}
/// <summary>
/// 重置事件
/// </summary>
后面还有 18 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。