TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kelum kanchana
NA
29
0
Slide Show
Sep 16 2009 10:25 AM
Hi.. Friends;
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)
<cc1:SlideShowExtender ID="SlideShowExtender1" runat="server"
BehaviorID="SSBehaviorID"
TargetControlID="img1"
SlideShowServiceMethod="GetSlides"
AutoPlay="true"
ImageDescriptionLabelID="lblDesc"
NextButtonID="btnNext"
PreviousButtonID="btnPrev"
PlayButtonID="btnPlay"
PlayButtonText="Play"
StopButtonText="Stop"
Loop="true"
UseContextKey="True">
</cc1:SlideShowExtender>
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
Reply
Answers (
2
)
I have installed .Net 3.5 expression edition and silverlight plugin on my laptop. When I start new project, it does not show silverlight project templates.
SqlHelper Class