Hello,
I had the same Problem and I solved it in this way (I dont´t know if it is the best):
I played around to debug the GetSlides()-Webservice and tried to get a parameter in the Webservice (e.g. the database-ID of the Photo-Album) per Request.QueryString - and so it works for me:
1 Set the SlideShowServiceMethod dynamically in the Code-Behind:
<ajaxToolkit:SlideShowExtender ID="Slideshowextender" runat="server" PreviousButtonID="Button1"
NextButtonID="Button3" PlayButtonID="Button2" TargetControlID="Image_Slideshow"
SlideShowServiceMethod="" PlayInterval="5000" PlayButtonText="Play" StopButtonText="Stop"></ajaxToolkit:SlideShowExtender>
protected void Page_Load(object sender, EventArgs e)
{
// AlbumID for Slideshow:
Slideshowextender.SlideShowServiceMethod =
"GetSlides?AlbumID="+ Request.QueryString["AlbumID"];
...
2 And in The GetSlides-Webservice:
[System.Web.Services.
WebMethod]
[System.Web.Script.Services.
ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
int AlbumID = int.Parse(HttpContext.Current.Request.QueryString["AlbumID"]);
// now the Database-Select with the Parameter:
Hope That helps!
Marcel