Mono Support Anonymous Group  (Closed)

Viewed 18676 time(s), 5 post(s), 4/4/2012 5:42:59 AM - by DavidE.Tedeschi
4/4/2012 5:42:59 AM
130 Reputation 16 Total posts

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?

1
4/4/2012 7:19:45 AM
3016 Reputation 428 Total posts

Hi,

what do you mean by anonymous user? Unauthenticated users?

Regards

2
4/4/2012 10:12:35 AM
15993 Reputation 2214 Total posts

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

3
4/4/2012 12:42:52 PM
130 Reputation 16 Total posts

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.

4
4/6/2012 7:41:34 AM
15993 Reputation 2214 Total posts

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

5
This is a demo site for MonoX. Please visit Mono Software for more info.