I've written a control in C# that overrides the built-in DropDownList control. For this I need a javascript resource included, which I'm including as an embedded resource then adding the WebResource
attribute, which works fine.
However, I also need to reference a webservice, which I would normally include in the scriptmanager on the page like this
<asp:scriptmanager id="scriptmanager" runat="server">
<Services>
<asp:ServiceReference Path="~/Path/To/Service.asmx" />
</Services>
</asp:scriptmanager>
Is there any way to make the page include this reference in the code behind on the control I've created, similar to how it includes the embedded javascript file?