admin/ad/UserAE.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class admin_ad_UserAE : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["curAdmin"] == null || Session["curAdmin"].ToString() == null)
{
Response.Redirect("../Login.aspx");
Response.End();
}
ScriptManager1.RegisterAsyncPostBackControl(btnSave);
if (!IsPostBack)
{
if (Request["ID"] != null)
{
txtLoginName.ReadOnly = true;
GetDta();
}
}
}
#region 取出数据
private void GetDta()
{
string Str = "select * from KY_Users Where ID=" + Request["ID"];
DataTable dt = KYSql.ExecuteQuery(Str);
txtAdminName.Text = dt.Rows[0]["realName"].ToString();
txtLoginName.Text = dt.Rows[0]["loginName"].ToString();
txtAdminPhone.Text = dt.Rows[0]["userPhone"].ToString();
dropAdminSex.SelectedValue = dt.Rows[0]["userSex"].ToString();
if ((bool)dt.Rows[0]["isUse"] == true)
chkUse.Checked = true;
}
#endregion
#region 验证数据
private Boolean Verification()
{
if (txtLoginName.Text.Trim() == "")
{
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "err", "top.opdlg('错误','登录名不能为空!','auto','auto',false,false,false,false);", true);
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "ok", "document.getElementById('btnSave').disabled=false;", true);
return false;
}
if (txtAdminName.Text.Trim() == "")
{
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "err", "top.opdlg('错误','请输入您的真实姓名!','auto','auto',false,false,false,false);", true);
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "ok", "document.getElementById('btnSave').disabled=false;", true);
return false;
}
//if (Request["ID"] != null)
//{
// if (txtLoginPwd.Text.Trim() == "")
// {
// return true;
后面还有 105 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
