Following this sample of slideshow asp.net ajax:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/SlideShow/SlideShow.aspx
with this code snippet:
<ajaxToolkit:SlideShowExtender ID="SlideShowExtender1" runat="server"
TargetControlID="Image1"
SlideShowServiceMethod="GetSlides"
AutoPlay="true"
ImageTitleLabelID="imageTitle"
ImageDescriptionLabelID="imageDescription"
NextButtonID="nextButton"
PlayButtonText="Play"
StopButtonText="Stop"
PreviousButtonID="prevButton"
PlayButtonID="playButton"
Loop="true" />
If GetSlides() contains no image, how can I make the buttons Next and previous invisible? I think it is not user friendly to make them visible.
Thanks in advance.
You can use this code to display/hide the buttons:
Make sure to set the ClientIDMode to static for the buttons so you can access them via script:
This should give you the general idea. You can tweak the HideButtons routine as you need.