Hi,
I am trying to integrate the store module code with my own custom module . . .like so:
CurrentCart.AddItem(PortalId, 1, 1); // add product to cart programitically. ..then go right to checkout.
//redirect to the edit page with current skin and container.
string[] additionalParams = new string[1];
additionalParams[0] = "mid=" + ModuleId.ToString();
Response.Redirect(Globals.NavigateURL(TabId, "Checkout", additionalParams));
The good news:
The product is added to the cart.
The bad news:
The Response.Redirect is failing and the following error is thrown: - Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.} System.Exception {System.Threading.ThreadAbortException}
The URL that the portal is going to is: http://localhost/dotnetnuke_maintenance/RequestEvaluations/tabid/55/ctl/Checkout/mid/372/Default.aspx
I read that the ctl is not Good, but I do not understand why.