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.
<telerik:RadComboBox ID="RadComboBox4" runat="server" Width="250px" Height="150px"
EmptyMessage="Select a Company" EnableLoadOnDemand="true" ShowMoreResultsBox="true"
<WebServiceSettings Method="GetCompanyNames" Path="defaultcs.aspx" />
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?