AjaxControlToolkit - Cascading Drop Down

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/2/2009 3:05:53 PM
b
Gravatar
Total Posts 13

AjaxControlToolkit - Cascading Drop Down

Has anyone gotten the cascading dropdown of the AjaxControlToolkit to work within a Mojoportal module?  The cascading dropdowncontrol uses a System.Web.Services.WebMethod page method.  How did you go about changing this when developing an ascx module rather than an aspx page?

Thanks for your insights and assistance -- just using the Cascading DropDownlist example from asp.net (http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx).

 

6/3/2009 5:32:57 AM
Gravatar
Total Posts 18439

Re: AjaxControlToolkit - Cascading Drop Down

I don't think it would be any different using that control inside a .ascx vs a .aspx, in both cases you first need to implement a WebService page, in the demo they have CarService.asmx set as the web service to provide the data. You would need to create a .asmx service page to produce the data that the cascading dropdown consumes. It doesn't really matter whether the control lives inside a .ascx UserControl or inside a .aspx  Page, it will consume the data from the web service page in both cases.

Hope it helps,

Joe

9/2/2009 9:40:00 AM
b
Gravatar
Total Posts 13

Re: AjaxControlToolkit - Cascading Drop Down

I got the asmx to work in my development environment, but when I port it to the shared hosting environment, a [Method 401] error occurs.  The hosting environment has modified the trust levels to full trust to no avail.  The behavior is that a windows authtication message pops up when the asmx is called.  When that window is closed (it doesn't appear in my dev environment), an error message is posted to the error log:

2009-09-01 22:38:38,869 ERROR mojoPortal.Web.Global - xx.xxx.xxx.xxx-en-US - /CountryStateService.asmx/GetDropDownContents System.InvalidOperationException: No web service found at: /CountryStateService.asmx. at System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods, Boolean inlineScript)

Of course, the asmx file really does exist in the root directory. 

Any suggestions?

9/2/2009 10:02:43 AM
b
Gravatar
Total Posts 13

Re: AjaxControlToolkit - Cascading Drop Down

More info -- in the dev environment, typing in countrystateservice.asmx shows the standard wsdl.  Doing the same in the shared hosting environment results in a 'We're sorry but we could not find the page you are looking for. Please try the Site Map.' error message.

 

9/2/2009 10:33:10 AM
b
Gravatar
Total Posts 13

Re: AjaxControlToolkit - Cascading Drop Down

Fixed -- my error.  Not a problem with anything else.  (although I had checked and rechecked that the file existed, somewhere along the line it didn't exist).  Copying file back to server -- not a problem.  No problem with asmx page level web service using xml file for data load for cascading dropdown.

 

You must sign in to post in the forums. This thread is closed to new posts.