This is a migrated thread and some comments may be shown as answers.

[Solved] WebService in ASCX

2 Answers 236 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jaydev
Top achievements
Rank 1
Jaydev asked on 01 May 2008, 12:50 PM
Hi,
       I have one application, in which i am loading dynamically ascx. These webUserControls are dynamically loaded in Home.aspx page, In Home.aspx, i write this code for call webService in client side. Means Home.aspx page has a radAjaxManager, but i not want to put radAjaxManager on every ascx. Now my problem is that how i can use/call webservice in ascx without put radAjaxmanager in ascx. And i also want to some controls value of ascx into webService, for eg. textbox value or checkbox value. In home.aspx page -

<radA:RadAjaxServiceManager ID="RadAjaxServiceManager1" runat="server">
                <WebServices>
                    <radA:WebServiceReference Path="~/Test.asmx" />
                </WebServices>
 </radA:RadAjaxServiceManager>

its urgent for me.
Thanks

2 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 01 May 2008, 12:57 PM
Hi Jaydev,

You doesn't have to add RadAjaxManager instance for each user control. Furthermore, the new RadAjax for ASP.NET AJAX won't allow you to have more than one instance in your application.

You can add a single RadAjaxManager in your main page and add RadAjaxManagerProxy in the user controls where needed. Alternatively, you can add the AJAX settings dynamically. You may find the following resources helpful:

http://www.telerik.com/demos/aspnet/prometheus/Ajax/Examples/Manager/UserControl/DefaultCS.aspx
http://www.telerik.com/help/radcontrols/aspnet-ajax/?ajxUserControls.html

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jaydev
Top achievements
Rank 1
answered on 02 May 2008, 07:15 AM
Hi Konstantin Petkov,
                                  Thanks for reply. Using ur link i am not enable to create webservice and call in ascx. Please send me small sample in which you have created one webService and call it into ascx. Else give me this type of link, in which i can find.

Thanks
Tags
Ajax
Asked by
Jaydev
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Jaydev
Top achievements
Rank 1
Share this question
or