KingNET.PageLib/AdminPageBase.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DMSFrame.Loggers;
using DMSFrame;
using System.Web;
using System.Collections;
using KingNET.PageLib.Utils;
namespace KingNET.PageLib
{
public class AdminPageBase : PageBase
{
protected void ShowErrorMessage(string Title, string Message, string ReturnUrl)
{
Message = Message.Replace("\\n", "<br/>");
Response.Redirect("/ShowErrorPage.aspx?title=" + Title + "&message=" + Message + "&returnurl=" + ReturnUrl.Replace("&", "[and]"), true);
}
protected void ShowErrorMessageMain(string Message)
{
Message = Message.Replace("\\n", "<br/>");
Response.Redirect("/ShowErrorPage.aspx?title=出错&message=" + Message + "&returnurl=/", true);
}
protected void ShowErrorMessage(string Message, string ReturnUrl)
{
Message = Message.Replace("\\n", "<br/>");
Response.Redirect("/ShowErrorPage.aspx?title=出错提示&message=" + Message + "&returnurl=" + ReturnUrl.Replace("&", "[and]"), true);
}
protected void ShowErrorMessage(string Message)
{
Message = Message.Replace("\\n", "<br/>");
Response.Redirect("/ShowErrorPage.aspx?title=出错提示&message=" + Message + "&returnurl=" + HttpContext.Current.Request.RawUrl.Replace("&", "[and]"), true);
}
/// <summary>
/// 转向到警告页
/// </summary>
/// <param name="ReturnUrl">要返回的页面</param>
protected void NoRightAlert()
{
Response.Redirect("/ShowMessagePage.aspx?Title=没有权限&Message=您没有权限进行此操作&ReturnUrl=/body.aspx");
}
protected string SourceUrl
{
get
{
if (ViewState["_SourceUrl"] != null)
return ((string)ViewState["_SourceUrl"]).Replace("[and]", "&");
else
return "";
}
}
protected void BindDropDownList(System.Web.UI.WebControls.ListControl ddl, IEnumerable list,
string DataTextField, string DataValueField, bool Insert)
{
ddl.DataSource = list;
后面还有 138 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。