Student.Web/Manage/AdminEdit.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Student.Model;
using CC.Common;
namespace Student.Web.Manage
{
public partial class AdminEdit : AdminBasePage
{
#region 基本变量
private Admin info;
private string action;
private int id;
#endregion
/// <summary>
/// 页面载入事件
/// </summary>
/// <param name="sender">触发事件的对象</param>
/// <param name="e">事件的参数</param>
protected void Page_Load(object sender, EventArgs e)
{
action = Requests.Query("action");
id = Utils.StrToInt(Requests.Query("id"));
if (!IsPostBack)
{
BindData();
}
}
/// <summary>
/// 绑定数据
/// </summary>
private void BindData()
{
info = AdminBLL.GetAdminInfo(id);
if (info != null)
{
txtName.Value = info.Name;
txtSex.Items.FindByValue(info.Sex.ToString()).Selected = true;
txtMobile.Value = info.Mobile;
txtQQ.Value = info.QQ;
txtAddress.Value = info.Address;
txtBirthDay.Value = info.BirthDay.ToString("yyyy-MM-dd");
}
}
/// <summary>
/// 按钮事件
/// </summary>
/// <param name="sender">触发事件的对象</param>
/// <param name="e">事件的参数</param>
protected void subitBtn_Click(object sender, EventArgs e)
{
后面还有 100 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。