This question is locked. New answers and comments are not allowed.
I am using a Web Method to fill a telerik combobox that is in a user control. (see http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx ). I would like to put the Web Method code in the code behind for the user control rather than the mainpage code.
So for the path, I would like to put: Path = "usercontrol1.ascx" rather than Path = "defaultcs.aspx", but it cannot find the web method. Is it possible for a user control to call a web method that is in the code behind for the user control?
<telerik:RadComboBox ID="RadComboBox4" runat="server" Width="250px" Height="150px"
EmptyMessage="Select a Company" EnableLoadOnDemand="true" ShowMoreResultsBox="true"
EnableVirtualScrolling="true">
<WebServiceSettings Method="GetCompanyNames" Path="defaultcs.aspx" />
</telerik:RadComboBox>
So for the path, I would like to put: Path = "usercontrol1.ascx" rather than Path = "defaultcs.aspx", but it cannot find the web method. Is it possible for a user control to call a web method that is in the code behind for the user control?