Hi I am using asp.net ajax slideshowextender in my masterpage. it works fine in masterpage. but if i go to the child page(/Support/Service.aspx) the slideshowextender is not showing any image. i have no idea why it's not working. any suggestions would be appreciated. Here is my code: In MasterPage.master: <asp:Image ID="Image2" runat="server" Height="95px" Width="100px"/> <ajaxToolkit:SlideShowExtender ID="SlideShowExtender1" runat="server" TargetControlID="Image2" SlideShowServicePath=WebServiceLogo.asmx SlideShowServiceMethod="GetSlides" AutoPlay="true" Loop="true"> </ajaxToolkit:SlideShowExtender> In C# Code: [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Web.Script.Services.ScriptService] public class WebServiceLogo : System.Web.Services.WebService { public WebServiceLogo () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public AjaxControlToolkit.Slide[] GetSlides() { return new AjaxControlToolkit.Slide[] { new AjaxControlToolkit.Slide("Logo/DEC.jpg", "", ""), new AjaxControlToolkit.Slide("Logo/DUET.jpg", "", ""), }; } } Thanks Abul
Hi, Have you tried using the master page operator for the image path? Please take a look at these Site paths: http://msdn.microsoft.com/en-us/library/ms178116.aspx Salute, Mark
These may help: http://weblogs.asp.net/jgaylord/archive/2008/06/09/need-quot-out-of-the-box-quot-ajax-functionality-for-your-data-controls.aspx
There isatrick I have used. Pasted below is the actual code from a page of mine, notice the second line for the master page virtual path.
Hi Mark Thanks for reply. ihave setup the VirtualPath in eachchild page like <%@ MasterType VirtualPath="~/MasterPage.master" %> but still image is now showing. Any other suggestion? Thanks Abul