I want to build a CompositeControl with a CascadingDropDown and use the Page Level Webmethod trick. I've built the control and if I put the webmethods directly on the page that uses the control, everything work great. However, this control will be used on several different pages in the app and it doesn't seem right to have to duplicate the webmethods on each of the pages. I tried adding the webmethods to the composite control but that didn't seem to work. Any ideas how to make it work?
Thanks
Hi Birch9373,
Please seperate the PageMethod from the MasterPage to an individual WebService(.asmx).Then set its ServicePath and ServiceMethod for the CascadingDropDownExtender in the MasterPage. It won't work in your situation.
Best regards,
Jonathan
Jonathan,
Thanks for the response. Do you know of a good article that discusses how the internals of how the Page Level Webmethod works?
Hi Birch9397,
Please see these documents,Exposing Web Services to Client Script in ASP.NET AJAX andWebService.
Best regards,
Jonathan
No comments:
Post a Comment