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.
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)
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.
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.
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.
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 ;-)
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
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)
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
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
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
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
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
is working on a reply...