Web/admin/UserAddressManage.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Web.admin
{
public partial class UserAddressManage : ManageBasePage
{
BLL.address bll = new BLL.address();
BLL.city citybll = new BLL.city();
int CurPage = 1;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MODEL.session_manage managemodel = new MODEL.session_manage();
managemodel = System.Web.HttpContext.Current.Session[ManageBasePage.Session_Manage] as MODEL.session_manage;
if (managemodel == null)
{
Response.Redirect("~/admin/Login.aspx");
}
else
{
if (managemodel.classid == 1)
{ }
else
{
Response.Redirect("~/admin/main.aspx");
}
}
string action = Request["action"];
if (action == "del")
{
string strID = Request["id"];
if (bll.Delete(Convert.ToInt16(strID)))
{
string script = string.Format("<script language='JavaScript'>alert('删除成功!');</script>");
ScriptManager.RegisterStartupScript(this, this.GetType(), System.Guid.NewGuid().ToString(), script, false);
}
else
{
string script = string.Format("<script language='JavaScript'>alert('删除失败!');</script>");
ScriptManager.RegisterStartupScript(this, this.GetType(), System.Guid.NewGuid().ToString(), script, false);
}
}
Bind();
}
}
private void Bind()
{
PagedDataSource objPds = new PagedDataSource();
string strWhere = " 1=1";
string strKeyWord = Request["keyword"];
后面还有 40 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
