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 10572 time(s), 5 post(s) 4/4/2012 5:42:59 AMby DavidE.Tedeschi
DavidE-Tedeschi

DavidE.Tedeschi

4/4/2012 5:42:59 AM
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?

This content has not been rated yet. 
130 Reputation 16 Total posts
imarusic

imarusic

4/4/2012 7:19:45 AM
Hi,

what do you mean by anonymous user? Unauthenticated users?

Regards

This content has not been rated yet. 
3016 Reputation 428 Total posts
khorvat

khorvat

4/4/2012 10:12:35 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
DavidE-Tedeschi

DavidE.Tedeschi

4/4/2012 12:42:52 PM
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.
This content has not been rated yet. 
130 Reputation 16 Total posts
khorvat

khorvat

4/6/2012 7:41:34 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts