Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AjaxToolkit SlideShow extenderAjaxToolkit SlideShow extender
Previous
 
Next
New Post
3/22/2008 9:31 AM
 

Has anyone managed to use the Ajax Toolkit slideshow extender? Or am I wasting my time trying? Iv'e got a web service supplying images but the image control doesn't update.

Thanks

 
New Post
4/6/2008 5:48 PM
 

I have gotten it to work but the problem I am having is passing in a variable using contextKey. I need to find a way to set the contextKey parameter based on a variable that is being passed from another page. Should be simple but....

Put some code up and I will see if I can help you out with your problem.

Tim

 
New Post
4/17/2008 9:28 AM
 

Hi Tim,

 

Thanks for your reply - I was getting a bit despondant and nearly gave up...

It's a while since I wrote this, so it's a bit rusty...  Things appeared to be going OK in DNN, jsut that the image never got updated.  If you can find the flaws in this, or could provide a working example, I would be thrilled!!!

 

I created a control: SlideShowControl.ascx

 

<%

@ Control Language="C#" AutoEventWireup="true" CodeFile="SlideShowControl.ascx.cs"

 

<%

Inherits="DotNetNuke.Modules.AJAXControlToolkit.AJAXControlToolkit" %>@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<

<

br />asp:UpdatePanel ID="UpdatePanel1" runat="server">

 

<ContentTemplate>

 

 

<asp:Image ID="Image1" runat="server" Height="316px" Width="388px"ImageUrl="~/images/Blue hills.jpg" /><br />

 

<br />

 

<asp:Label ID="lblImageDescription" runat="server" /><br />

 

<br />

 

<asp:Button ID="Btn_Previous" runat="server" Text="Previous" />

 

<asp:Button ID="Btn_Next" runat="server" Text="Next" Width="64px" /><br />

 

<br />

 

<asp:Button ID="Btn_Play" runat="server" Text="Play" /><br />

 

<cc1:SlideShowExtender ID="SlideShowExtender1" AutoPlay="true" ImageDescriptionLabelID="lblImageDescription"

 

Loop="true" NextButtonID="Btn_Next" PlayButtonID="Btn_Play" PlayButtonText="Play"

 

PreviousButtonID="Btn_Previous" SlideShowServiceMethod="GetSlides" StopButtonText="Stop"

 

TargetControlID="Image1" runat="server" SlideShowServicePath="SlideShowService.asmx">

 

</cc1:SlideShowExtender>

 

</

</ContentTemplate>asp:UpdatePanel>

 

 

and the code behind...

 

using

System;

using

DotNetNuke;

using

DotNetNuke.Common;

using

DotNetNuke.Security.Roles;

using

DotNetNuke.Security.Membership;

using

System.Collections.Generic;

using

DotNetNuke.Entities;

using

DotNetNuke.Services.Exceptions;

using

System.Collections;

using

DotNetNuke.Entities.Users;

using

System.Web.UI;

using

System.Web.UI.WebControls;

namespace

{

 

{

 

{

 

{

DotNetNuke.Framework.AJAX.RegisterScriptManager();

 

DotNetNuke.Modules.AJAXControlToolkitpublic partial class AJAXControlToolkit : DotNetNuke.Entities.Modules.PortalModuleBaseprotected void Page_Load(object sender, EventArgs e)if (DotNetNuke.Framework.AJAX.IsInstalled())// Create a reference to the Script Manager

 

 

ScriptManager objScriptManager = ScriptManager.GetCurrent(this.Page);// Add a reference to the web service

 

objServiceReference.Path =

objScriptManager.Services.Add(objServiceReference);

}

}

}

}

 

 

and the slide show service...

using

System;

using

System.Collections;

using

System.Web;

using

System.Web.Services;

using

System.Web.Services.Protocols;

using

System.Data.SqlClient;

using

System.Data;

///

///

<summary> Summary description for SlideShowService

///

</summary>

[

[

WebService(Namespace = "http://worldcarimports.com/")]WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.

[System.Web.Script.Services.

ScriptService]

public

class SlideShowService : System.Web.Services.WebService

{

 

{

 

public SlideShowService()//Uncomment the following line if using designed components

 

//InitializeComponent();

}

[

 

{

 

}

 

[System.Web.Services.

[System.Web.Script.Services.

 

{

AjaxControlToolkit.

 

slides[0] =

slides[1] =

slides[2] =

slides[3] =

slides[4] =

 

}

 

}

 

 

also SlideShowService.asmx

 

<%

@ WebService Language="C#" CodeBehind="~/App_Code/SlideShowService.cs" Class="SlideShowService" %>
WebMethod]public string HelloWorld()return "Hello World";WebMethod]ScriptMethod]public AjaxControlToolkit.Slide[] GetSlides(string contextKey)Slide[] slides = new AjaxControlToolkit.Slide[5];new AjaxControlToolkit.Slide("~/images/Blue hills.jpg", "Blue Hills", "Go Blue");new AjaxControlToolkit.Slide("~/images/Sunset.jpg", "Sunset", "Setting sun");new AjaxControlToolkit.Slide("~/images/Winter.jpg", "Winter", "Wintery...");new AjaxControlToolkit.Slide("~/images/Water lilies.jpg", "Water lillies", "Lillies in the water");new AjaxControlToolkit.Slide("~/images/VerticalPicture.jpg", "Sedona", "Portrait style picture");return (slides);
ServiceReference objServiceReference = new ServiceReference();@"~/DesktopModules/SlideShow/SlideShowService.asmx";

 
New Post
4/29/2008 12:34 PM
 

craig, did you ever got this to work?

 
New Post
5/1/2008 9:30 AM
 

Hi,

no - this never worked.  It seemed that the images were being supplied correctly from the web service, but the displayed image never changed.  The same code ( .asx component) worked ok in Visual studio though...

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AjaxToolkit SlideShow extenderAjaxToolkit SlideShow extender


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out