Web/Admin/Accounts/usermodify.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using LTP.Accounts.Bus;
using System.Configuration;
namespace Maticsoft.Web.Accounts
{
	/// <summary>
	/// usermodify 的摘要说明。
	/// </summary>
	public partial class usermodify : System.Web.UI.Page
	{	
		protected void Page_Load(object sender, System.EventArgs e)
		{
			if (!Page.IsPostBack) 
			{			

				if (Context.User.Identity.IsAuthenticated)
				{					
					AccountsPrincipal user=new AccountsPrincipal(Context.User.Identity.Name);						
					User currentUser=new LTP.Accounts.Bus.User(user);

					this.lblName.Text=currentUser.UserName;
					txtTrueName.Text=currentUser.TrueName;
					if(currentUser.Sex=="男")
						RadioButton1.Checked=true;
					else
						RadioButton2.Checked=true;
					this.txtPhone.Text=currentUser.Phone;
					txtEmail.Text=currentUser.Email;

//					for(int i=0;i<this.Dropdepart.Items.Count;i++)
//					{
//						if(this.Dropdepart.Items[i].Value==currentUser.DepartmentID)
//						{
//							this.Dropdepart.Items[i].Selected=true;
//						}
//					}

                    //for (int i = 0; i < this.dropUserType.Items.Count; i++)
                    //{
                    //    if (this.dropUserType.Items[i].Value == currentUser.UserType)
                    //    {
                    //        this.dropUserType.Items[i].Selected = true;
                    //    }
                    //}

					this.dropStyle.SelectedIndex=currentUser.Style-1;

//					BindRoles(user);					
				}
			}

后面还有 92 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。