An ajax call is made to the following function:

        [AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)]
        public static AjaxPro.JavaScriptObject
OffsetItemQuantity(string itemID, int offset)
        {
            Cart cart = CartUtil.GetSessionCart();
            CartItem cartItem = cart.Items[new Guid(itemID)];
            AjaxPro.JavaScriptObject obj = new
AjaxPro.JavaScriptObject();

            CartUtil.OffsetItemQuantity(cart, cartItem.ItemID, offset);

            obj.Add("ItemID", itemID);
            obj.Add("Quantity", cartItem.Quantity);
            obj.Add("TotalPrice", ((double)(cartItem.Quantity *
cartItem.Item.Price)).ToString("C"));

            return obj;
        }

This object is returned:

extend => function(o, override) {
        return Object.extend.apply(this, [this, o, override != false]);
}
__type => AjaxPro.JavaScriptObject, AjaxPro.2, Version=6.4.3.3,
Culture=neutral, PublicKeyToken=4735ae9824c7d3ec
Value =>
[["ItemID","6a628fe4-3c37-4669-bc74-536283bb4ad8","System.String","System.String"],["Quantity",5,"System.String","System.Int32"],["TotalPrice","$45.55","System.String","System.String"]]
Keys => ItemID,Quantity,TotalPrice
IsFixedSize => false

I can not access it, like obj.ItemID or obj["ItemID"] not sure why.
What am I doing wrong?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to