Web/mem/wpEdit.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using UBW.Common;
public partial class mem_Default : System.Web.UI.Page
{
UBW.BLL.books bll = new UBW.BLL.books();
UBW.BLL.bookType bll2 = new UBW.BLL.bookType();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack && Session["lname"]!=null)
{
DataSet dstid = bll2.GetAll();
ddltid.DataSource = dstid;
ddltid.DataTextField = "tname";
ddltid.DataValueField = "tid";
ddltid.DataBind();
chushi();
}
}
/// <summary>
/// 初始化
/// </summary>
protected void chushi()
{
//根据编号得到相应的记录
DataSet ds = bll.GetData("*"," bid=" + Request.QueryString["id"]);
if (ds.Tables[0].Rows.Count > 0)
{
txt_bname.Text = ds.Tables[0].Rows[0]["bname"].ToString();
ddltid.SelectedValue = ds.Tables[0].Rows[0]["tid"].ToString();
txt_author.Text = ds.Tables[0].Rows[0]["author"].ToString();
Labelpic.Text = ds.Tables[0].Rows[0]["pic"].ToString();
if (Labelpic.Text != "" && Labelpic.Text.Length > 3)
{
Imagepic.ImageUrl = "../uploads/" + Labelpic.Text;
Imagepic.Visible = true;
}
txt_oprice.Text = ds.Tables[0].Rows[0]["oprice"].ToString();
txt_price.Text = ds.Tables[0].Rows[0]["price"].ToString();
txt_quan.Text = ds.Tables[0].Rows[0]["quan"].ToString();
elm1.Value = ds.Tables[0].Rows[0]["memo"].ToString();
}
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
后面还有 33 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。