WebUI/Admin/User_Add.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
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 BLL;
using Model;
using Utility;
public partial class Admin_User_Add : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["UserName"] == null)
{
Response.Write("<script language=\"javascript\">top.location.href='../Error.aspx?info=未登录或登录超时';</script>");
Response.End();
return;
}
if (!IsPostBack)
{
}
}
protected void btnEdit_Click(object sender, EventArgs e)
{
try
{
UserMOD usermod = new UserMOD();
usermod.UseName = Request.Form["txtuser_Admin_ID"].ToString();
usermod.Password = Text.EncryptPwd("123456").Substring(8, 8);
usermod.Realname = txtuser_Name.Text;
usermod.Sex = DropUser_Sex.SelectedItem.Text;
usermod.ComTel = txtuser_ComTel.Text;
usermod.ComPart = txtuser_ComPart.Text;
usermod.TelPhone = txtuser_Tel.Text;
usermod.Email = txtuser_Email.Text;
usermod.HomeAdd = txtuser_HomeAdd.Text;
usermod.QQ = txtuser_QQ.Text;
usermod.HomeTel = txtuser_HomeTel.Text;
usermod.MSN = txtuser_MSN.Text;
usermod.Homecode = txtuser_HomeCode.Text;
usermod.Beizhu = txtuser_Others.Text;
usermod.PhotoAdd = Imguser_photo.ImageUrl.ToString().Substring(Imguser_photo.ImageUrl.ToString().LastIndexOf("/") + 1);
int result = UserBLL.insertUserInfo(usermod);
if (result > 0)
{
Response.Write("<script language='javascript'>alert('保存成功!');location='User_Add.aspx';</script>");
}
}
catch (Exception ex)
后面还有 71 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
