WebApp/Admin/Music_Manage.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using RM.Common;
namespace RM.WebApp.Admin
{
public partial class Music_Manage : AdminBasic
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
tbContent.Text = Files.loadFile(Server.MapPath("/Music/MusicList.xml"));
}
}
protected void btn_Save_Click(object sender, EventArgs e)
{
if (Files.saveFile(Server.MapPath("/Music/MusicList.xml"), tbContent.Text))
{
//写入系统日志.
RM.BLL.WebLog.WriteMasterOperate("修改", "修改背景音乐列表.");
ClientScript.RegisterStartupScript(this.GetType(), "saveok", JS.Alert("背景音乐列表修改成功!"));
ClientScript.RegisterStartupScript(this.GetType(), "redirect", JS.Replace("Music_Manage.aspx"));
}
else
{
ClientScript.RegisterStartupScript(this.GetType(), "Error", JS.Alert("背景音乐列表修改失败!"));
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。