Web/Admin/Pictures/Edit.aspx.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
namespace Web.Admin.Pictures
{
public partial class Edit : Web.UI.ManagePage
{
public int Id;
protected void Page_Load(object sender, EventArgs e)
{
if (!int.TryParse(Request.Params["id"] as string, out this.Id))
{
JscriptMsg(350, 230, "错误提示", "<b>出现错误啦!</b>您要修改的信息不存在或参数不正确。", "back", "Error");
return;
}
if (!Page.IsPostBack)
{
chkLoginLevel("editPictures");
//绑定类别
ChannelTreeBind(0, "请选择所属类别...", (int)Channel.Pictures, this.ddlClassId);
ShowInfo(this.Id);
}
}
//输出输出扩展字段的CSS
protected string WriteCss(bool isNull, string fieldType)
{
StringBuilder str = new StringBuilder();
str.Append("input");
if (isNull == false)
str.Append(" required");
if (fieldType.Trim() == "Numeric")
str.Append(" number");
return str.ToString();
}
//赋值操作
private void ShowInfo(int _id)
{
BLL.Pictures bll = new BLL.Pictures();
Model.Pictures model = bll.GetModel(_id);
txtTitle.Text = model.Title;
ddlClassId.SelectedValue = model.ClassId.ToString();
txtContent.Value = model.Content;
txtClick.Text = model.Click.ToString();
txtSortId.Text = model.SortId.ToString();
txtAccelerate.Text = model.Accelerate;
txtAccessories.Text = model.Accessories;
txtBand.Text = model.Band;
txtBluetooth.Text = model.Bluetooth;
txtCamera.Text = model.Camera.ToString();
后面还有 303 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。