Backup/Web/Client/ShopIndex.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
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;
namespace MrZeng.Web.Client
{
public partial class ShopIndex : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.QueryString["id"] != null)
{
int id = Convert.ToInt32(Request.QueryString["id"]);
ShopInfoBind(id);
GoodsBind();
}
else
{
Response.Redirect("Default.aspx");
}
}
}
private void ShopInfoBind(int id)
{
MrZeng.BLL.P_BusinessInfo bll = new MrZeng.BLL.P_BusinessInfo();
MrZeng.Model.P_BusinessInfo model = bll.GetModel(id);
// this.Title = model.ShopName.ToString();
Session["ss"] = model.UserNum;
ImageUrl.ImageUrl = "~"+model.ImageUrl;
TopShopName.Text = model.ShopName;
ShopName.Text = model.ShopName;
TrueName.Text = model.TrueName;
ShopType.Text = model.ShopType;
LoadDate.Text = model.LoadDate.ToString();
LinkPhone.Text = model.LinkPhone;
Email.Text = model.Email;
ClickCount.Text = model.ClickCount.ToString();
Session["prestige"]=model.PrestigeCount.ToString();
PrestigeCount.ImageUrl = "~/"+GetPrestige(Convert.ToInt32(model.PrestigeCount));
Describe.Text = model.Describe;
UpdateClickCount();
}
private void UpdateClickCount()
{
MrZeng.BLL.P_BusinessInfo bll = new MrZeng.BLL.P_BusinessInfo();
MrZeng.Model.P_BusinessInfo model = new MrZeng.Model.P_BusinessInfo();
model.ID = Convert.ToInt32(Request.QueryString["id"]);
model.ClickCount = Convert.ToInt32(this.ClickCount.Text) + 1;
bll.UpdateClickCount(model);
后面还有 100 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
