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.0Question about AjaxQuestion about Ajax
Previous
 
Next
New Post
12/8/2007 7:38 PM
 

can anyone shed light on this...  it's a bit hard to explain but if you've done anything with ajax and dnn you should be able to follow it.

I made a simple DNN module with two ajax cascadingdropdown lists (extending two dropdownlists of course).  
The code to load the dropdowns is in the dnn app_Code folder, in a vb file. 

In the desktop modules folder, I put an asmx file that has one line pointing to my web service.

<%@ WebService Language="VB" CodeBehind="~/App_Code/CRWebService.vb" Class="CRWebService" %>

So all the Desktop Modules\My Custom Module folder has in it is:

   the ascx file with the dropdowns,
   the asmx with the one line of code shown above that calls the web service in the dnn app_Code folder 
   and a CallWebServiceMethods.js file that contains the method to call the web servce

Of course, I went to the Hosts module definition screen and entered the new module and control.

This works wonderfully.  I put a button on the ascx to cause a postback and the values are retained.  Good stuff.

Now I take that ascx file with teh dropdowns, along with the asmx file and the .js file, 
and put them into another one of my modules, exactly the same forms and code 
(except of course I change the namespace to be my new module instead of the old one).  
I put these files inside the new module's \controls folder.  

So to picture this, I have one ascx that is the form for my new module and the ascx from the other module which I put in the controls folder of this new module.
I have two ascx files in other word; one to host the dropdowns asxc, and the dropdowns ascx itslef.

I dymanically load the controls\ascx control (the one with the CCD dropdowns) in the ascx page of the new module
....  and does it work?  NO!

It doesn't work.  The two dropdows appear but they are are empty. 

I tired moving the asmx and the .js file into the main folder (one down from the controls folder) but that didn't help at all.

So my question is, why didn't this work?
Or more appropriately, what can I do to make it work?

If you have an answer I'd be most appreciative.

Thanks.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Question about AjaxQuestion about Ajax


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