.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> ASP.NET >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Ajax Slide Show Control in Asp.Net

Posted By:Dinkar       Posted Date: April 11, 2011    Points: 200    Category: ASP.NET    URL: http://www.dotnetspark.com  

Today we see As.Net Ajax Slideshow Control its very Simple Ajax Slide show control used same as powerpoint. image will change after sometime automatically so now we start step wise methods
 

Ajax Slide Show Control in Asp.Net

Today we see As.Net Ajax Slideshow Control its very Simple

Ajax Slide show control used same as powerpoint. image will change after sometime automatically
so now we start step wise methods

Step 1) first you have to take Scriptmanager

step 2) Take Lable and Image Control and take three button for next,prev,stop like.

step 3 Now take Slideshow Extender Control and go to source and write some properties of Slideshow like

 


now go to
Image Control go to smart tag and select Add Slideshow page method

and write code following:

    [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
    public static AjaxControlToolkit.Slide[] GetSlides()
    {
        AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[4];
        slides[0] = new AjaxControlToolkit.Slide("images/a.jpg", "ered", "nice images");
        slides[1] = new AjaxControlToolkit.Slide("images/b.jpg", "dss", "nice images");
        slides[2] = new AjaxControlToolkit.Slide("images/c.jpg", "d", "nice images");
        slides[3] = new AjaxControlToolkit.Slide("images/d.jpg", "ds", "nice images");
        //return default(AjaxControlToolkit.Slide[]);
        //return default(AjaxControlToolkit.Slide[]);
        return slides;
}
 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend