ASP.NET - Slideshow extender(ajax)
Asked By pavithra subbareddy
17-Dec-09 02:02 AM
Hi friends,
Iam working with ajax.i doing slideshow extender tool,it is not correctly working.please provide me a correct coding.its urgent...
Re - Slideshow extender(ajax)

Try this code sample
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SlideShow.aspx.cs" Inherits="SlideShow" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>SlideShow</title>
<script runat="Server" type="text/C#">
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[5];
slides[0] = new AjaxControlToolkit.Slide("images/Image1.jpg", "First image of my album", "First Image");
slides[1] = new AjaxControlToolkit.Slide("images/Image2.jpg", "Second image of my album", "Second Image");
slides[2] = new AjaxControlToolkit.Slide("images/Image3.jpg", "Third image of my album", "Third Image");
slides[3] = new AjaxControlToolkit.Slide("images/Image4.jpg", "Fourth image of my album", "Fourth Image");
slides[4] = new AjaxControlToolkit.Slide("images/Image5.jpg", "Fifth image of my album", "Fifth Image");
return (slides);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<table width="400px" align="center" height="350px" bgcolor="silver">
<tr align="center">
<td>
<asp:ScriptManager ID="ScriptManager2" runat="server" />
<asp:Label ID="lableImageDetail" runat="server" ForeColor="#000000" />
</td>
</tr>
<tr align="center">
<td>
<asp:Image runat="server" ID="image1" Height="250" Width="300" />
</td>
</tr>
<tr align="center">
<td>
<asp:Button ID="buttonPrev" runat="Server" Text="Previous" Width="80px" />
<asp:Button ID="buttonPlay" runat="server" Text="Play" Width="80px" />
<asp:Button ID="buttonNext" runat="Server" Text="Next" Width="80px" />
</td>
</tr>
</table>
<ajaxToolkit:SlideShowExtender ID="slideShowExtender1" runat="Server" TargetControlID="image1"
ImageDescriptionLabelID="lableImageDetail" Loop="true" AutoPlay="true" StopButtonText="Stop"
PlayButtonText="Play" NextButtonID="buttonNext" PreviousButtonID="buttonPrev"
PlayButtonID="buttonPlay" SlideShowServiceMethod="GetSlides" />
</form>
</body>
</html>
http://www.c-sharpcorner.com/UploadFile/prathore/SlideShowExtender05062009063223AM/SlideShowExtender.aspx
You can download code sample or video demo http://www.asp.net/%28S%28wnmvzu45umnszm455c1qs522%29%29/learn/ajax-videos/video-163.aspx
Slideshow
For a lightweight option to run a AJAX slideshow, consider using a
jQuery slideshow plugin like "Cycle" along with a Generic HTTP Handler
(.ashx) to fetch image path from the database -
http://jonraasch.com/blog/a-simple-jquery-slideshow
http://www.eggheadcafe.com/tutorials/aspnet/b8381915-06d9-4538-b4bb-5ac2a8e73f34/implementing-continuous-s.aspx
(contains a code sample on writing a generic HTTP Handler)
There are other jQuery plugins as well that make it easy to build a slideshow -
http://speckyboy.com/2009/06/03/15-amazing-jquery-image-galleryslideshow-plugins-and-tutorials/
If you would like stick with Slideshow extender, let us know the error that you currently see.
eliza sahoo replied to pavithra subbareddy
In ASP.NET AJAX Control toolkit there is an extender known as SlideShowExtender. This can be used to create a Slide show by looping through the images. The images are shown in the SlideShow by using a PageMethod or a Webservice.
http://www.mindfiresolutions.com/

Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B I) what is the difference between Convert.toString and .toString () method? (A) What is Native Image Generator (Ngen.exe)? (A) If we have two version of same assembly in GAC how A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET sessions with classic ASP? (B) Which are the various modes of storing ASP.NET
net ADO is designed primarily for connected access ADO.net the disconnected access to the database is used In ADO you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter object), which makes calls to or the APIs provided by the underlying data source. In ADO you cant update the database from the recordset. ADO.NET the data adapter allows you to control how the changes to the dataset are transmitted to the database. On order to get assembly info which namespace we should import? System.Reflection Namespace How tab”) This will fill the dataset with the records starting at 5 to 15 .NET Database interview questions How do you call and execute a Stored Procedure in.NET? Give an in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For
authentication modes and its implementation in projects hi, i am doing a project in asp.net. . i want to use a authentication mode in this project.it is a educational based do some authentication in this project. How To: Use Forms Authentication with SQL Server in ASP.NET 2.0 patterns & practices Developer Center J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode, Andy Wigley, Kishore Gopalan Microsoft Corporation August 2005 Applies To • ASP.NET version 2.0 • SQL Server 2000 Summary This How To shows you how you can This How To explains how to create a login page using the new membership Login control, configure your Web application to use forms authentication, create the user store database, grant database access to your Web application account, configure ASP.NET membership settings, and set
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to
share session between Classic ASP applications and ASP.NET applications? I want to share session state between Classic ASP applications and ASP.NET applications. Can we share ? if yes , How ? Yes, it can. See the article at the user session, and can be used to identify session state for both classic ASP and ASP.NET. Session state information is stored in memory in ASP script and can't be shared with other applications, such as ASP.NET. If the session state is stored in a common format in Microsoft® SQL Server