Snailsoft.CRM.Web/CommonBBS/BBSUI/Manage/BBSRoleDelete.aspx.cs

(开头部分) 1KB

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

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

using Snailsoft.BBS.DB;
using Snailsoft.BBS.DB.Data;
using Snailsoft.BBS.Business;
using Snailsoft.BBS.BaseClass;
using Snailsoft.BBS.BBSInterface;

namespace Snailsoft.BBS.BBSUI.Manage
{
	/// <summary>
	/// BBSRoleDelete 的摘要说明。
	/// </summary>
	public class BBSRoleDelete : BBSAdminBasePage
	{
		protected System.Web.UI.WebControls.Panel panelList;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			if (this.IsPostBack== false) 
			{
				string temp= this.Request.QueryString["keyIDs"];
				bool ret= this.DeleteRecords(temp);
				if(ret== true)
				{
					this.Response.Redirect("BBSRoleList.aspx");
				}
			}
		}

		private bool DeleteRecords(string keyIDs)
		{
			bool ret= false;
			BbsroleBN roleBN= new BbsroleBN();
			try
			{
				string[] temp= keyIDs.Split('|');
				ret= roleBN.Deletes(temp);
			}
			catch(Exception ex)
			{
				this.panelList.Controls.Add(new LiteralControl(ex.Message));
			}
			finally
			{
				roleBN.Dispose();
			}
			return ret;
		}
		#region Web 窗体设计器生成的代码
		override protected void OnInit(EventArgs e)
后面还有 20 行代码,购买后查看完整代码

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

AI 解读

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

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