Hi All,
I installed a new skin and it works fine.The ascx page is xyz.ascx and i need the user authentication in the Home Page itself.So that
i added these two lines below.
<%@ Register TagPrefix="dnn" TagName="LOGINPAGE" Src="~/admin/Authentication/Login.ascx" %>
<td width="222" height="3" bgcolor="#ffffff"><dnn:LOGINPAGE runat="server" id="USER1" CssClass="MediaTabs" /></td>
when i click the Login button, the authentication is checked and the name of the user is displayed. But the problem is that the following error occurs.
Could Not Load Skin: /Portals/0/Skins/xyz/xyz.ascx Error: Value cannot be null. Parameter name: format
In the page, admin/Users/Password.ascx.vb , the following error throws.
Public Overrides Sub DataBind()
If IsAdmin Then
lblTitle.Text = String.format(Localization.GetString("PasswordTitle.Text", LocalResourceFile), User.Username, User.UserID.ToString) Exception : Value cannot be null.Parameter name: format
Else
trTitle.Visible = False
End If
lblLastChanged.Text = User.Membership.LastPasswordChangeDate.ToLongDateString
'Set Password Expiry Label
If User.Membership.UpdatePassword Then
lblExpires.Text = Localization.GetString("ForcedExpiry", Me.LocalResourceFile)
Else
If PasswordConfig.PasswordExpiry > 0 Then
lblExpires.Text = User.Membership.LastPasswordChangeDate.AddDays(PasswordConfig.PasswordExpiry).ToLongDateString
Else
lblExpires.Text = Localization.GetString("NoExpiry", Me.LocalResourceFile)
End If
End If
'If Password retrieval is not supported then only the user can change
'their password, an Admin must Reset
If Not MembershipProviderConfig.PasswordRetrievalEnabled And IsAdmin Then
pnlChange.Visible = False
Else
pnlChange.Visible = True
'Set up Change Password
If IsAdmin And Not IsUser Then
lblChangeHelp.Text = Localization.GetString("AdminChangeHelp", Me.LocalResourceFile)
trOldPassword.Visible = False
Else
lblChangeHelp.Text = Localization.GetString("UserChangeHelp", Me.LocalResourceFile)
End If
End If
'If Password Reset is not enabled then only the Admin can reset the
'Password, a User must Update
If Not MembershipProviderConfig.PasswordResetEnabled Then
pnlReset.Visible = False
Else
pnlReset.Visible = True
'Set up Reset Password
If IsAdmin And Not IsUser Then
If MembershipProviderConfig.RequiresQuestionAndAnswer Then
pnlReset.Visible = False
Else
lblResetHelp.Text = Localization.GetString("AdminResetHelp", Me.LocalResourceFile)
End If
trQuestion.Visible = False
trAnswer.Visible = False
Else
If MembershipProviderConfig.RequiresQuestionAndAnswer And IsUser Then
lblResetHelp.Text = Localization.GetString("UserResetHelp", Me.LocalResourceFile)
lblQuestion.Text = User.Membership.PasswordQuestion
trQuestion.Visible = True
trAnswer.Visible = True
Else
pnlReset.Visible = False
End If
End If
End If
'Set up Edit Question and Answer area
If MembershipProviderConfig.RequiresQuestionAndAnswer And IsUser Then
pnlQA.Visible = True
Else
pnlQA.Visible = False
End If
End Sub
Please help me how to add the user authentication page in the Home Page itself. If i did a wrong way , tell me the right one.
Thanks
Regards
Fenie Thomas