listing 15-15 pg(568)
how is it that the code listed on page 568 can work if we place the function in our Global.asax file...
Public void Profile_MigrateAnonymous(object sender, ProfileMigrateEventArgs e)
{
Profile.GetPropertyValue(e.AnonymousID).LastVisite d.ToString();
}
according to page 568, it states that you can add this to the Global.asax file, so that it can be used from anywhere in the application. But this throws an error:
Error 1 'object' does not contain a definition for 'LastVisited' and no extension method 'LastVisited' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
??
|