Pliot/Edit.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using LTP.Common;
public partial class Pliot_Edit : PageBase
{
Maticsoft.BLL.db_Pilot db = new Maticsoft.BLL.db_Pilot();
Maticsoft.Model.db_Pilot model = new Maticsoft.Model.db_Pilot();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string id = this.ext_string(Request.QueryString["ID"]);
if (id != "")
{
getInfo(id);
}
}
}
public void getInfo(string id)
{
model = db.GetModel(id);
this.txtName.Value = model.Name;
this.Text3.Value = model.Sex;
this.Text1.Value = ext_string(model.Age);
this.Text4.Value = model.Phone;
try
{
this.ddlist.Items.FindByValue(model.Levels).Selected = true;
}
catch { }
this.Text5.Value =ext_string(model.Beendriving);
this.hid.Value = model.ID;
}
protected void button_Click(object sender, EventArgs e)
{
bool ruala = false;
model.Name = this.txtName.Value;
model.Sex = this.Text3.Value;
model.Age = this.ext_int(this.Text1.Value);
model.Phone = this.Text4.Value;
model.Levels = this.ddlist.SelectedValue;
model.Beendriving = this.ext_int(this.Text5.Value);
if (this.hid.Value != "")
{
model.ID = this.hid.Value;
ruala = db.Update(model);
}
else
后面还有 14 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。