goumai/goumaimod.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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;
using System.Xml.Linq;
using System.Text;
using System.Data.SqlClient;
//信息购买修改页面
public partial class goumai_goumaimod : System.Web.UI.Page
{
string id = "";
protected void Page_Load(object sender, EventArgs e)
{
id = Request.QueryString["id"].ToString();
if (!Page.IsPostBack)
{
(Master.FindControl("Label1") as Label).Text = "修改购买";
ShowInfo();
}
}
// 初始化 购买 信息
protected void ShowInfo()
{
//设置查询Sql
string sql = "select * from goumai where gmid=" +id ;
//根据编号得到相应的记录
SqlDataReader sdr = SqlHelper.ExecuteReader(sql);
if (sdr.Read())
{
this.yh.Text= sdr["yh"].ToString();//用户
this.gm.Text= sdr["gm"].ToString();//购买
this.cw.Text= sdr["cw"].ToString();//车位
this.zt.Text= sdr["zt"].ToString();//状态
this.gmsj.Text= sdr["gmsj"].ToString();//购买时间
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
string yh=this.yh.Text;//用户
string gm=this.gm.Text;//购买
string cw=this.cw.Text;//车位
string zt=this.zt.Text;//状态
string gmsj=this.gmsj.Text;//购买时间
if(yh.Length==0){
MessageBox.Show(this.Page,"用户不能为空");
return ;
}
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
