MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Anonymous Group  (Closed) (Mono Support )

Viewed 18797 time(s), 5 post(s) 04.04.2012 05:42:59by DavidE.Tedeschi
DavidE-Tedeschi

DavidE.Tedeschi

04.04.2012 05:42:59
Is there an out-of-the-box way to "not" show a web-part to a logged-in user but have it shown to an anonymous user?

Dieser Inhalt wurde noch nicht bewertet. 
130 Reputation 16 Total posts
imarusic

imarusic

04.04.2012 07:19:45
Hi,

what do you mean by anonymous user? Unauthenticated users?

Regards

Dieser Inhalt wurde noch nicht bewertet. 
3016 Reputation 428 Total posts
khorvat

khorvat

04.04.2012 10:12:35
Hi,

if your scenario is that simple you can use the following expression in the mark-up for specific control
Visible="<% $Code: Page.User.Identity.IsAuthenticated %>"

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
DavidE-Tedeschi

DavidE.Tedeschi

04.04.2012 12:42:52
Yes, I meant unauthenticated user. Thank you Khorvat, checking it in code seems simple enough. My hope was to have a group that was associated to unauthorized user whouch would allow me to select or deselect in the properties through the UI (see image). But, it seems that you cannot.

Use case: I have a login webpart displayed but would like for it to disappear once they are logged in.

Thank you for the fast response.
Dieser Inhalt wurde noch nicht bewertet. 
130 Reputation 16 Total posts
khorvat

khorvat

06.04.2012 07:41:34
Hi,

yes you can't configure this by using the role permissions you need to "get your hands dirty" to handle this. But in the end it is very simple to do.

I'm closing this issue, if you need anything else please open new topic.

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts