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  (Zatvorena) (Mono Support )

18738 put(a) pogledan, 5 odgovor(a) 4.4.2012. 5:42:59Kreirao(la) DavidE.Tedeschi
DavidE-Tedeschi

DavidE.Tedeschi

4.4.2012. 5: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?

Ovaj sadržaj još nije ocijenjen. 
130 Reputacija 16 Ukupno objava
imarusic

imarusic

4.4.2012. 7:19:45
Hi,

what do you mean by anonymous user? Unauthenticated users?

Regards

Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
khorvat

khorvat

4.4.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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
DavidE-Tedeschi

DavidE.Tedeschi

4.4.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.
Ovaj sadržaj još nije ocijenjen. 
130 Reputacija 16 Ukupno objava
khorvat

khorvat

6.4.2012. 7: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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava