Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

SlideShowExtender

$
0
0

Hello,

I am using a slideshowextender and using the following call in and the code in the cs file where I am using this webmethod. The extender itself is in a usercontrol:

[System.Web.Services.WebMethod]
        [System.Web.Script.Services.ScriptMethod]
        public static AjaxControlToolkit.Slide[] GetSlides()
        {
            AtriaConstructions.CDatabase db = new AtriaConstructions.CDatabase();
            List<AtriaConstructions.CProjectImages> cImages = db.GetProjectImages(Int32.Parse(HttpContext.Current.Request.QueryString["projectID"].ToString()));
            string path = cImages[2].ToString();
            string[] fileNames = System.IO.Directory.GetFiles(HttpContext.Current.Server.MapPath(path));
            AjaxControlToolkit.Slide[] images = new AjaxControlToolkit.Slide[fileNames.Length];
            for (int i = 0; i < fileNames.Length; i++)
            {
                string[] file = fileNames[i].Split('\\');
                images[i] = new AjaxControlToolkit.Slide(path + file[file.Length - 1], "", file[file.Length - 1]);
            }
            return images;
        }



But I cannot find request.querystring. Is there a workaround?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>