In my dotnetnet Nuke project, I have to put a sentence in a page for signed (logged in) users. And I have to put another sentence for unsigned users. How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the same code that’s written in login skin object here:
https://github.com/dnnsoftware/Dnn.Platform/blob/30bd1a1bd9d2962a36f6e39403f00ba5877dcfab/Website/admin/Skins/Login.ascx.cs#L84
Visible = (!PortalSettings.HideLoginControl || Request.IsAuthenticated) && (!PortalSettings.InErrorPageRequest() || ShowInErrorPage);You can only use Request.IsAuthenticated in your case as well.
— old answer —
Use login skin object provided by dnn to do so.