Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rasb 162 posts 218 karma points
    Aug 24, 2009 @ 00:54
    rasb
    0

    Cascading Drop Down Ajax control in User Control

    Hi guys,

    Have any of you had any experience with this? I have tried to create a user control with this and also deploying the webservice.

    The user control works when I just deploy it using a simple aspx page, but when I deploy it on my umbraco site it doesn't work. I have tried many different settings for the path to the webservice, but none have worked. 

    I don't have the code right here, but if anyone knows a trick to get it to work then I will be very happy. If need to post the code, then I can do so tomorrow.

    Thanks,
    RasB

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Aug 24, 2009 @ 01:11
    Aaron Powell
    0

    Did you make sure to specify that the webservice is a reserved path in the web.config?

    You need to set the umbracoReservedUrls or umbracoReservedPaths (depending on where you're putting the web service).

    Could also help if you explained "doesn't work", does the web service not get hit, is there an error in the response, etc? (Firebug will help tell you what's happening in the web service call)

  • rasb 162 posts 218 karma points
    Aug 24, 2009 @ 18:27
    rasb
    0

    I didn't have the code or the app at hand (and still don't), so I just wanted to ask if anyone had any suggestions off the top of their head.

    The reserved path is a good one! I will definitely try that out, as I haven't thought of that.

    /RasB

  • rasb 162 posts 218 karma points
    Sep 30, 2009 @ 01:17
    rasb
    0

    Hi Guys,

    Finally back, and eager to solve this problem.

    Let me start over here. I have created a user control, that contains a set of cascading drop down ajax controls.

    When I load the user control on a page, I do not get any values loaded, but instead there is only one value [Method error 500].

    When I debug the user control embedded on a test page outside Umbraco, it works fine.

    I have tried to put the webservice that retrieves the values a few different places. I have tried placing them in the usercontrols folder. I have the user control in a folder called "MyControl".

    I have added the path to the umbracoReservedUrls as "/usercontrols/MyControl/myservice.asmx" and I can navigate to it from a browser. I can also execute the methods on that webservice from the browser, and they return data correctly.

    When I navigate to the page that has the cascading drop down controls embedded I still get the error. I have referenced ServicePath attribute of the <ajaxToolkit:CascadingDropDown> tag with the value "/usercontrols/MyControl/myservice.asmx".

    When I try to debug the code from Umbraco by attaching the Visual Studio debugger to my IIS instance, my code in the webservice is never reached.

    Any ideas anyone?

    Thanks,

    RasB

  • rasb 162 posts 218 karma points
    Sep 30, 2009 @ 01:25
    rasb
    0

    A little followup...

    When I simply set the ServicePath attribute to "myservice.asmx" I can se that it is referenced as ../usercontrols/MyControl/myservice.asmx in the javascript code in when viewing source.

    When I make that URL available through the UmbracoReservedUrls, then it is still the same.

    /RasB

  • rasb 162 posts 218 karma points
    Sep 30, 2009 @ 01:26
    rasb
    0

    A little followup...

    When I simply set the ServicePath attribute to "myservice.asmx" I can se that it is referenced as ../usercontrols/MyControl/myservice.asmx in the javascript code in when viewing source.

    When I make that URL available through the UmbracoReservedUrls, then it is still the same.

    /RasB

  • rasb 162 posts 218 karma points
    Oct 04, 2009 @ 12:12
    rasb
    0

    I decided to implement this without the use of the Cascading Dropdown control from the Ajax Toolkit. After spending way too many hours on this without finding the solution, I gave up ;-)

    /RasB

Please Sign in or register to post replies

Write your reply to:

Draft