C
clintonG
This code has to go into the global.asax Application_Start code block.
I'm just not getting this one right and the web-based code converters choke
on it. Can somebody rewrite this VB snippet to C# for me?
Sub Profile_MigrateAnonymous(ByVal sender As Object, ByVal e As
ProfileMigrateEventArgs)
Dim anonymousProfile As ASP.HttpProfile =
Profile.GetProfile(e.AnonymousId)
If anonymousProfile.Cart IsNot Nothing Then
Profile.Cart = anonymousProfile.Cart
End If
End Sub
I'm just not getting this one right and the web-based code converters choke
on it. Can somebody rewrite this VB snippet to C# for me?
Sub Profile_MigrateAnonymous(ByVal sender As Object, ByVal e As
ProfileMigrateEventArgs)
Dim anonymousProfile As ASP.HttpProfile =
Profile.GetProfile(e.AnonymousId)
If anonymousProfile.Cart IsNot Nothing Then
Profile.Cart = anonymousProfile.Cart
End If
End Sub