当前位置: 首页>>代码示例>>C#>>正文


C# UserData.IsAccountLocked方法代码示例

本文整理汇总了C#中UserData.IsAccountLocked方法的典型用法代码示例。如果您正苦于以下问题:C# UserData.IsAccountLocked方法的具体用法?C# UserData.IsAccountLocked怎么用?C# UserData.IsAccountLocked使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UserData的用法示例。


在下文中一共展示了UserData.IsAccountLocked方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Display_EditUser


//.........这里部分代码省略.........
                hppwd.Text = "<td class=\"label\"><span style=\"color:red;\">*</span>" + m_refMsg.GetMessage("password label") + "</td>";
                hppwd.Text += "<td class=\"value\"><input type=\"password\" maxlength=\"255\" size=\"25\" name=\"pwd\" id=\"pwd\" value=\"" + user_data.Password + "\" onkeypress=\"return CheckKeyValue(event,\'34\');\">";
                hppwd.Text += "<input type=\"hidden\" name=\"hpwd\" id=\"hpwd\" value=\"" + user_data.Password + "\">";
                hppwd.Text += "</td>";
            }
            if (ThirdPartyAuthenticationEnabled(user_data.IsMemberShip))
            {
                confirmpwd.Text = "<td colspan=\"2\"><input type=\"hidden\" maxlength=\"255\" size=\"25\" name=\"confirmpwd\" id=\"confirmpwd\" value=\"" + user_data.Password + "\" onkeypress=\"return CheckKeyValue(event,\'34\');\"></td>";
            }
            else
            {
                confirmpwd.Text = "<td class=\"label\"><span style=\"color:red;\">*</span>" + m_refMsg.GetMessage("confirm pwd label") + "</td>";
                confirmpwd.Text += "<td class=\"value\"><input type=\"password\" maxlength=\"255\" size=\"25\" name=\"confirmpwd\" id=\"confirmpwd\" value=\"" + user_data.Password + "\" onkeypress=\"return CheckKeyValue(event,\'34\');\"></td>";
            }

            if (ADIntegrationEnabledForUserType(user_data.IsMemberShip))
            {
                email.Text = "<td class=\"label\">" + m_refMsg.GetMessage("email address label") + "</td>";
                email.Text += "<td><input type=\"Hidden\" maxlength=\"255\" size=\"25\" name=\"email_addr1\" id=\"email_addr1\" value=\"" + user_data.Email + "\" onkeypress=\"return CheckKeyValue(event,\'34,32\');\">" + user_data.Email + "</td>";
            }
            else
            {
                email.Text = "<td class=\"label\">" + m_refMsg.GetMessage("email address label") + "</td>";
                email.Text += "<td class=\"value\"><input type=\"Text\" maxlength=\"255\" size=\"25\" name=\"email_addr1\" id=\"email_addr1\" value=\"" + user_data.Email + "\" onkeypress=\"return CheckKeyValue(event,\'34,32\');\"></td>";
            }
            if (m_intGroupType == 1)
            {
                email.Text += "<input type=hidden id=email_addr1Org name=email_addr1Org value=\"" + user_data.Email + "\">";
            }

            if ((this.m_refContentApi.RequestInformationRef.LoginAttempts != -1) && ((security_data.IsAdmin) || (m_refContentApi.IsARoleMember(Ektron.Cms.Common.EkEnumeration.CmsRoleIds.AdminUsers))))
            {
                accountLocked.Text = "<input type=\"checkbox\" id=\"chkAccountLocked\" name=\"chkAccountLocked\" ";
                if (user_data.IsAccountLocked(this.m_refContentApi.RequestInformationRef))
                {
                    accountLocked.Text += " checked ";
                }
                accountLocked.Text += " />";
            }
            else
            {
                accountLocked.Text = "<input type=\"hidden\" id=\"chkAccountLocked\" name=\"chkAccountLocked\" ";
                if (user_data.IsAccountLocked(this.m_refContentApi.RequestInformationRef))
                {
                    accountLocked.Text += " value=\"on\" />";
                }
                else
                {
                    accountLocked.Text += " value=\"\" />";
                }
            }

            ltr_avatar.Text = "<input type=\"Text\" maxlength=\"255\" size=\"19\" name=\"avatar\" id=\"avatar\" value=\"" + EkFunctions.HtmlEncode(user_data.Avatar) + "\" onkeypress=\"return CheckKeyValue(event,\'34\');\">";
            ltrmapaddress.Text = "<input type=\"Text\" maxlength=\"100\" size=\"19\" name=\"mapaddress\" id=\"mapaddress\" value=\"" + user_data.Address + "\" onkeypress=\"return CheckKeyValue(event,\'34\');\">";
            ltrmaplatitude.Text = "<input type=\"Text\" maxlength=\"100\" size=\"19\" name=\"maplatitude\" id=\"maplatitude\" value=\"" + user_data.Latitude + "\" onkeypress=\"return CheckKeyValue(event,\'34\');\" disabled>";
            ltrmaplongitude.Text = "<input type=\"Text\" maxlength=\"100\" size=\"19\" name=\"maplongitude\" id=\"maplongitude\" value=\"" + user_data.Longitude + "\" onkeypress=\"return CheckKeyValue(event,\'34\');\" disabled>";
            ltr_upload.Text = "</asp:Literal>&nbsp;<a href=\"Upload.aspx?action=edituser&addedit=true&returntarget=avatar&EkTB_iframe=true&height=300&width=400&modal=true\" title=\"" + m_refMsg.GetMessage("upload txt") + "\" class=\"ek_thickbox button buttonInline greenHover buttonUpload btnUpload\" title=\"" + m_refMsg.GetMessage("upload txt") + "\">" + m_refMsg.GetMessage("upload txt") + "</a>";
            HttpBrowserCapabilities browser = Request.Browser;
            Ektron.Cms.Framework.Context.CmsContextService context = new Ektron.Cms.Framework.Context.CmsContextService();

            if (browser.Type.Contains("IE") && browser.MajorVersion >= 9)
            {
                // work around to prevent errors in IE9 when it destroys native JS objects
                // see http://msdn.microsoft.com/en-us/library/gg622929%28v=VS.85%29.aspx
                uxAvatarUploadIframe.Attributes.Add("src", "about:blank");
            }
开发者ID:jaytem,项目名称:minGit,代码行数:67,代码来源:edituser.ascx.cs


注:本文中的UserData.IsAccountLocked方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。