Re: IsInRole not as expected

From: Kim Bach Petersen (msnews@kensho.dk)
Date: 01/30/03


From: "Kim Bach Petersen" <msnews@kensho.dk>
Date: Thu, 30 Jan 2003 09:56:18 +0100


> HttpContext.Current.User.IsInRole("Admins")

A blind guess: The IsInRole-function is added to the context in global.asax,
its not a defalut function of the page class - that is, make sure the useres
roles are added to the context in both global.asax-files.

Kim :o)