E
Edward
Can you do this in C#?
FKCreatedBy = (aspnet_Membership.Key != null ? aspnet_Membership.Key :
GetGuestGuid());
(this is the method GetGuestGuid)
public static Guid GetGuestGuid()
{
// Guest is declared as a private const elsewhere
aspnet_Membership am = aspnet_Membership.GetUser(Guest);
return am.UserId;
}
When I run the code in debug mode I can see that it's returning a GUID
in return am.UserId, but this is never assigned to FKCreatedBy.
Thoughts?
Thanks
Edward
FKCreatedBy = (aspnet_Membership.Key != null ? aspnet_Membership.Key :
GetGuestGuid());
(this is the method GetGuestGuid)
public static Guid GetGuestGuid()
{
// Guest is declared as a private const elsewhere
aspnet_Membership am = aspnet_Membership.GetUser(Guest);
return am.UserId;
}
When I run the code in debug mode I can see that it's returning a GUID
in return am.UserId, but this is never assigned to FKCreatedBy.
Thoughts?
Thanks
Edward