Master.Api not available

May 26, 2010 at 9:38 PM

Hi Guys,

I have installed the toolkit, done exactly what was on the website with a Masterpage and everything seems to work fine, however, when I go to get the current userId on my default.aspx page and type the following...

Master.Api.Users.GetLoggedInUser();

I get the underline under the "Api" part and get the message System.Web.UI.MasterPage does not contain a definition for Api.

Any help appreciated

 

 

May 26, 2010 at 9:58 PM

Found it, you need to post this into your content page.

 

<%@ MasterType VirtualPath="~/MasterPage.Master" %>

 

Cheers