<%@ Application Language="C#" %>
<script Runat="server">
protected void Profile_MigrateAnonymous(object sender,
ProfileMigrateEventArgs e) {
ProfileCommon anonymousProfile = Profile.GetProfile(e.AnonymousId);
if (anonymousProfile != null) {
Profile.LoginCount += anonymousProfile.LoginCount;
}
}
</script>