I am a beginner of asp.net (2.0). Now I am developig small web application. My project has 2 forms.
1.Customerlist.aspx
This page is using for view all customers details in a gridview control.
2.singleCustomer.aspx
This page is using for, when user click on one record of Customerlist.aspx page this page load with that customer details.
I already put a AJax Silde show program on singleCustomer.aspx. (Check followig Source Code)
TargetControlID="img1"
SlideShowServiceMethod="GetSlides"
AutoPlay="true"
ImageDescriptionLabelID="lblDesc"
NextButtonID="btnNext"
PreviousButtonID="btnPrev"
PlayButtonID="btnPlay"
PlayButtonText="Play"
StopButtonText="Stop"
Loop="true"
UseContextKey="True">
There is a method on singleCustomer.aspx.cs page.
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class ReceDetails : System.Web.UI.Page
{
public void Page_Load(object sender, EventArgs e)
{
CompanyID = Reque.QueryString["CompanyID"];
}
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] imgSlide = new AjaxControlToolkit.Slide[4];
imgSlide[0] = new AjaxControlToolkit.Slide("CustomerImages/1000/DSC00261.jpg", "Autumn", "Autumn Leaves");
imgSlide[1] = new AjaxControlToolkit.Slide("CustomerImages/1000/DSC00262.jpg", "Creek", "Creek");
imgSlide[2] = new AjaxControlToolkit.Slide("CustomerImages/1000/DSC00263.jpg", "Landscape", "Landscape");
imgSlide[3] = new AjaxControlToolkit.Slide("CustomerImages/1000/DSC00264.jpg", "Dock", "Dock");
return (imgSlide);
}
}
I want to open each customer images folders. I Can get CustomerID in Page_Load event. How to transfer it to GetSlides method ? (Each customer has Image folder. (Each Customer's image folder name equal to customerId).
Thanks
Kelum
Roei BarPosted Sep 16, 2009, 2:29 PM
i can give you tons of examples on AjaxToolKit.
but i would rather show you a much Cooler SlideShow.
All Client Side, with Paging Ajax Support and whatever
http://www.gmarwaha.com/jquery/jcarousellite/
check out "jcarousellite" from Jquery
Master BillaPosted Sep 16, 2009, 10:31 AM
I have check your code, can you try with this code
http://www.codeproject.com/KB/ajax/ASPNETSlideShow.aspx
thank you