本文整理汇总了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> <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");
}