KaxRotatorWebServiceSettings Property |
Namespace: Kettic.AspNet.Controls
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] public WebServiceSettings WebServiceSettings { get; }
Use the WebServiceSettings property to configure the web service used to populate items on demand. You must specify both Path and Method to fully describe the service.
In order to use the integrated support, the web service should have the following signature:
[ScriptService] public class WebServiceName : WebService { [WebMethod] public KaxRotatorItemData[] WebServiceMethodName(int itemIndex, int itemCount) { List<KaxRotatorItemData> result = new List<KaxRotatorItemData>(); KaxRotatorItemData item; for (int i = 0; i < itemCount; i++) { item = new KaxRotatorItemData(); item.Html = "test "+(itemIndex+i); result.Add(item); } return result.ToArray(); } }