I have added a custom page in Default.Master at:
Code: if (this.Page.User.Identity.IsAuthenticated)
{
linkContainerControls.Add(new HyperLink() { NavigateUrl = ServerConstants.GuestPageUrl, Text = Resources.Default.LinkPanel_GuestLinkText });
linkContainerControls.Add(new HyperLink() { NavigateUrl = ServerConstants.HostPageUrl, Text = Resources.Default.LinkPanel_HostLinkText });
linkContainerControls.Add(new HyperLink() { NavigateUrl = "/custompage.aspx", Text = "Custompage Title" });
This works well, but I would like to limit the access to authenticated users. Right now, a user who knows the URL can access the page without authentication. How can I set the access rights of a custom page?
Thanks Juerg