Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to fetch images from the database and display them on the image extender, so far im just getting them from the folder.
Please Help


C#
[System.Web.Services.WebMethod]
        [System.Web.Script.Services.ScriptMethod]
        
        public static AjaxControlToolkit.Slide[] Slides()
        {
            AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[6];
            slides[0] = new AjaxControlToolkit.Slide("../Slideshow/exclusive.jpg", "", "");
            slides[1] = new AjaxControlToolkit.Slide("../Slideshow/20218.jpg", "", "");
            slides[2] = new AjaxControlToolkit.Slide("../Slideshow/20223.jpg", "", "");
            slides[3] = new AjaxControlToolkit.Slide("../Slideshow/expolsion.jpg", "", "");
            slides[4] = new AjaxControlToolkit.Slide("../Slideshow/sama.jpg", "", "");
            slides[5] = new AjaxControlToolkit.Slide("../Slideshow/teargas.jpg", "", "");
            return (slides);
        }
Posted
Updated 15-Oct-11 6:15am
v2

1 solution

you can store the path of these images in the DB, fetch the path instead and then display them using that path. Obviously, you would need to have a loop to populate your array.

Cheers...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900