Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...programmatically goto Checkout Pageprogrammatically goto Checkout Page
Previous
 
Next
New Post
1/4/2009 3:23 PM
 

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. 

 

 
New Post
7/17/2009 2:05 PM
 

Hi, I am getting this exact same error with NavigateURL. The strange thing is the same code works fine in other parts of the application. Did you ever figure out the cause?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...programmatically goto Checkout Pageprogrammatically goto Checkout Page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out