Address Book Odd Behavior
Posted: Wed Mar 24, 2010 3:00 pm
In the MyAddressBookPage control, I have a situation where the first address in the AddressList Repeater brings up edit billing address when clicked. So what happens is the primary billing address and first address are switched whenever an address is saved.
Basically, the CommandArgument='<%#Eval("AddressId")%>' of the first item in the repeater always defaults to the PrimaryAddressId i.e the Billing Address.
Has anybody experienced this or know what could cause this to happen?
EDIT: This simply happens when the page loads. Somewhere Token.Instance.User.PrimaryAddressId is being toggled between the default billing address, and the first address in the addresslist. All I have to do is refresh the page.
Basically, the CommandArgument='<%#Eval("AddressId")%>' of the first item in the repeater always defaults to the PrimaryAddressId i.e the Billing Address.
Has anybody experienced this or know what could cause this to happen?
EDIT: This simply happens when the page loads. Somewhere Token.Instance.User.PrimaryAddressId is being toggled between the default billing address, and the first address in the addresslist. All I have to do is refresh the page.