ASP.NET AJAX

Discussion in 'ASP.NET 2.0' started by abul71, Jun 8, 2008.

  1. 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
     
  2. There isatrick I have used.[​IMG]
    Pasted below is the actual code from a page of mine, notice the second line for the master page virtual path.


     
  3. 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
     
  4. I have tried with masterpage vittual path but still it didn't work. any suggestion?

    Thanks

    Abul
     

Share This Page