Administration/Users.aspx.cs

(开头部分) 13KB

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

//===============================================================================================
//
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
//
//===============================================================================================

using System;
using System.IO;
using System.Net.Mail;
using System.Web.Security;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using MyWebPagesStarterKit.Controls;
using System.Web;
using System.Net;

public partial class Administration_Users : PageBaseClass
{
    protected string lang;

    #region Properties
    /// <summary>
    /// Username of the currently selected user to edit
    /// </summary>
    protected string SelectedUserName
    {
        get
        {
            return SelectedUser.UserName;
        }
        set 
        { 
            SelectedUser = Membership.GetUser(value);
        }
    }
    
    protected bool ForcePasswordChange
    {
        get
        {
            return !Membership.EnablePasswordRetrieval;
        }   
    }

    /// <summary>
    /// User that was selected to edit
    /// </summary>
    protected MembershipUser SelectedUser
    {
        get
        {
            return (MembershipUser)ViewState["SelectedUserName"];
        }
        set 
        {
            ViewState["SelectedUserName"] = value;
        }
后面还有 305 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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