Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to check the authentication details in the Home PageHow to check the authentication details in the Home Page
Previous
 
Next
New Post
1/20/2009 5:35 AM
 

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

 


 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to check the authentication details in the Home PageHow to check the authentication details in the Home Page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out