I am reading the guide here http://msdn.microsoft.com/en-us/library/879kf95c.aspx.

At the section once the loginview is created it states.

 you would probably put the members-only page link in the logged-in template of the 
 LoginView control. That way, visitors to your site would not see the link until 
 they are logged in.

The guide contains no link on where you would find out how to do this. I am searching google but cannot find a guide that shows this.

Can anyone advise on exactly how Menu items only display when a user is logged in?

有帮助吗?

解决方案

Take a look at these articles:

ASP.NET Login Controls Overview

LoginView Class

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top