I have a page called ProfileInfo.aspx and the codebind looks like this -
using System;
using System.Web;
namespace myservice
{
public partial class ProfileInfo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// if no postback but user is authenticated, grab info from database
if (!IsPostBack)
{
if (System.Web.Profile.**IsAnonymous** == false)
{
}
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
}
}
}
And I am getting an error from the Profile.IsAnonymous statement, as follows -
The type or namespace name 'IsAnonymous' does not exist in the namespace 'System.Web.Profile' (are you missing an assembly reference?)
What am I doing wrong? Do I need to add a .NET dll reference to the web application project? I tried to look for System.Web.Profile but there is no such DLL. Please help and thanks in advance.