ShopAdmin/HelpInfo/UpdateShopHelp.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
namespace ShopAdmin.HelpInfo
{
public partial class UpdateShopHelp : System.Web.UI.Page
{
private Int32 helpId = 0;
private Int32 adminId = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (SubTool.CheckAdminLogin("0"))
{
adminId = WebUtility.CheckInt(MyCookie.getCookiesValue("shop8517Admin", "AdminId"));
if (!this.IsPostBack)
{
helpId = WebUtility.CheckInt(Request["HelpId"]);
if (helpId == 0)
{
Response.Write(WebUtility.AlertUrl("帮助主题不存在,请重新选择!!", "MsShopHelp.aspx"));
Response.End();
}
txtHelpId.Text = helpId.ToString();
bindDataInfo();
btnUpdate.Attributes.Add("onclick", " return jsCheck();");
}
}
}
private void bindDataInfo()
{
D_ShopHelpInfo hInfo = new D_ShopHelp().GetShopHelpInfo(helpId);
if (hInfo == null)
{
Response.Write(WebUtility.AlertUrl("帮助主题不存在,请重新选择!!", "MsShopHelp.aspx"));
Response.End();
}
txtHelpTitle.Text = hInfo.HelpTitle;
txtContent.Text = hInfo.HelpContent;
ltrDefaultParentId.Text = hInfo.ClassId.ToString();
}
protected void btnUpdate_Click(object sender, EventArgs e)
{
D_ShopHelpInfo hInfo = new D_ShopHelpInfo();
hInfo.HelpTitle = WebUtility.CheckStr(txtHelpTitle.Text);
hInfo.ClassId = WebUtility.CheckInt(Request["txtClassId"]);
hInfo.ClassName = WebUtility.CheckStr(Request["txtClassName"]);
hInfo.ParentIdRoute = WebUtility.CheckStr(Request["txtParentId"]);
hInfo.ParentNameRoute = WebUtility.CheckStr(Request["txtParentName"]);
hInfo.HelpContent = txtContent.Text;
hInfo.IsPost = 1;
hInfo.PostTime = DateTime.Now;
后面还有 15 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
