WebUI/Admin/Admin_AddMenu.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;
using Model;
public partial class Admin_Admin_AddMenu : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["UserName"] == null)
{
Response.Write("<script language=\"javascript\">top.location.href='../Error.aspx?info=未登录或登录超时';</script>");
Response.End();
return;
}
if (!IsPostBack)
{
try
{
List<MenuMOD> muList = MenuBLL.selectOneList(0);
for (int i = 0; i < muList.Count; i++)
{
ListItem li = new ListItem(muList[i].Title, muList[i].MenuID.ToString());
ddllm.Items.Add(li);
}
}
catch (Exception ex)
{
Response.Write(ex.Message);
log4net.ILog log = log4net.LogManager.GetLogger("AppLogger1");
log.Info("错误原因:", ex);
}
}
}
protected void btnroot_Click(object sender, EventArgs e)
{
try
{
MenuMOD mumod = new MenuMOD();
string strRoot = txtRoot.Text;
mumod.Title = strRoot;
mumod.ParentID = 0;
int result = MenuBLL.insertOneList(mumod);
if (result > 0)
{
Response.Write("<script language=\"javascript\">alert('添加成功!');location.href='Admin_AddMenu.aspx';window.parent.frames[0].location.reload();</script>");
}
}
catch (Exception ex)
{
后面还有 33 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
