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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AJAX Page CallAJAX Page Call
Previous
 
Next
New Post
8/4/2008 6:58 AM
 

Hi Everybody,

I've been crunching on an issue with a cart module i'm trying to create tailored to our wishes. How should it work:

Arbitrary product page (in our case XMOD) should show products.
An add-to-cart link should put the products in a cart. 
Then you have the view/update cart
...etc.

First i crated the cart module than in the first try i created an addtocart.aspx page iheriting from the wystem.web.ui.page. This however would result in not really enjoying the DNN functionality. It DID work however. So i stepped over to a addtocart usercontrol under the same namespace and got it working! Now i want to be able to test the cart more extensively and seeing as i do not have XMOD in my development environment i wanted to create an AJAX call to this control (something like the url the cart resides on but then the .../ctrl/AddToCart/etc... to acces it. This works if put into the browser manually. I know want to add it to my viewcart.ascx but am not able to find out how to call an OTHER control and get the response back with AJAX in DNN. I've developed quite a bit of AJAX applications and understand the principals very well but can not see any DNN examples that do NOT involve asmx files or call to the same pagebehind. THe reason i really want the client to call the control through ajax is that i can mimic the way XMOD works (within an XMOD template you can define the page you want to call and capture the responsetext or responsexml and process that. The second reason i want this is because i might want to place some of the cuntionality of the cart in a seperate control to have it grouped an use ajax around the module to call this controll.

Is there anyone out there who can give me an example in which i can call a different control (may also be an example posting top the same pagebehind that uses loadcontroll) and have that controll, though being an entire DNN page, return a message like "| Added to cart" which i can popup or write to some updatepanel?

I wopuld be REALLY thankfull seing i have already sp[ent a good 6 hours googling this.

Thanks in Advance,

Alexander

 
New Post
8/13/2008 4:12 AM
 

Anybody?

 
New Post
8/13/2008 6:12 PM
 

Basically :

I used to have a JS function on my (classic)ASP page included that took a url-to-post-to and a return-function parameter. It would xmlhttprequest another asp page with post or get params and show the result in a popup or assigned div. This is what i would like to do here as well. As i have a custom module in a namespace where the ascx control resides as partial class casting somehow does not work (hence the loadcontrol is not parameterisable(?)). I do however beleive that it should be possible to have the request go to the resolveclienturl(editurl("controlname")) . All of the ajax eaxmples i see deal with handling the request (postback / callback) in the same codebehind file. How can i:

- use DNN to handle it

- send it to an external page (ascx file / control)

?

Hope someone has an idea...

Tx in advance. Alexander

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AJAX Page CallAJAX Page Call


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