Try Now
More in this section

Forums / Security / Hide/Display Login controls

Hide/Display Login controls

2 posts, 0 answered
  1. michaell1999
    michaell1999 avatar
    1 posts
    24 Aug 2012
    12 Aug 2010
    Link to this post
    I'd like every page in my website to have the Login control and the CreateUserWizard control.

    But if the user logs in or creates a new user account then both disappear and instead they see the LoginStatus control.

    Any suggestions on how to do both of these?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    13 Aug 2010
    Link to this post
    Hello michaell1999,

    You can declare Login control and CreateUserWizard control in user controls. Then in Page_Load check the current user UserManager.GetCurrentUser and hide Login control and CreateUserWizard control, show LoginStatus control.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered