Click here to Skip to main content
15,905,427 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: HTML Tag Pin
Socheat.Net25-Aug-06 15:19
Socheat.Net25-Aug-06 15:19 
AnswerRe: HTML Tag Pin
Guffa27-Aug-06 0:00
Guffa27-Aug-06 0:00 
QuestionDynamically Create Linkbutton Pin
JGOnline20-Aug-06 0:07
JGOnline20-Aug-06 0:07 
AnswerRe: Dynamically Create Linkbutton Pin
gnjunge20-Aug-06 0:40
gnjunge20-Aug-06 0:40 
GeneralRe: Dynamically Create Linkbutton Pin
JGOnline20-Aug-06 1:47
JGOnline20-Aug-06 1:47 
AnswerRe: Dynamically Create Linkbutton Pin
Mircea Grelus20-Aug-06 1:35
Mircea Grelus20-Aug-06 1:35 
Questionhelp needed in slideshow Pin
Pravin H19-Aug-06 22:32
Pravin H19-Aug-06 22:32 
AnswerRe: help needed in slideshow [modified] Pin
gnjunge20-Aug-06 0:53
gnjunge20-Aug-06 0:53 
I will give you a couple of pointers:

If the directories are on the server, you have to build some server side control that loops over all the directories that you want the user to be able to print from, and print these to the screen.

When the user selects a directory, the server gets all the filenames from that directory and using a loop prints it into a javascript that looks for example like this:
var images = new Array(5);
images[0] = new Array('/images/','image1.jpg','Some description maybe');
images[1] = new Array('/images/','image2.jpg','Some description maybe');
images[2] = new Array('/images/','image3.jpg','Some description maybe');
images[3] = new Array('/images/','image4.jpg','Some description maybe');
images[4] = new Array('/images/','image5.jpg','Some description maybe');


So know on the client side you will have all the info to start working on your slideshow.

Now the missing element for the slideshow, is some sort of a timer, that is where the setTimeout() drops in. Once the user clicks start slideshow, he calls to a function that looks like this:

var isSlideshow = false;

function StartSlideShow()
{
    isSlideshow = true;

    ShowPicture (0)

}

function ShowPicture(picId)
{
    if (isSlideshow) {
       document.getElementById("img").src = images[i][0] + images[i][1];
       setTimeout('ShowPicture(' + picId + 1 + ')',2000); //call same function after 2 sec
    }


}

function StopSlideShow()
{
   isSlideshow = false;
}




Here you should have all your ingredients to start on your slideshow.
GeneralRe: help needed in slideshow Pin
Pravin H20-Aug-06 21:38
Pravin H20-Aug-06 21:38 
GeneralRe: help needed in slideshow Pin
gnjunge20-Aug-06 22:59
gnjunge20-Aug-06 22:59 
QuestionSQL Server, Images and DataGrid in ASP.NET Pin
postmaster@programmingknowledge.com19-Aug-06 19:01
postmaster@programmingknowledge.com19-Aug-06 19:01 
AnswerRe: SQL Server, Images and DataGrid in ASP.NET Pin
Colin Angus Mackay19-Aug-06 21:27
Colin Angus Mackay19-Aug-06 21:27 
AnswerRe: SQL Server, Images and DataGrid in ASP.NET Pin
bgates197020-Aug-06 7:43
bgates197020-Aug-06 7:43 
QuestionWebClient Problems Pin
bgates197019-Aug-06 11:11
bgates197019-Aug-06 11:11 
AnswerRe: WebClient Problems Pin
Guffa19-Aug-06 13:28
Guffa19-Aug-06 13:28 
GeneralRe: WebClient Problems Pin
bgates197020-Aug-06 7:33
bgates197020-Aug-06 7:33 
GeneralRe: WebClient Problems Pin
Guffa20-Aug-06 14:01
Guffa20-Aug-06 14:01 
Questionhow to get the selected text in textarea Pin
largs19-Aug-06 10:23
largs19-Aug-06 10:23 
AnswerRe: how to get the selected text in textarea Pin
Coding C#20-Aug-06 20:27
Coding C#20-Aug-06 20:27 
Questionjavascript coding for onmouseover event [modified] Pin
bhushan thorat19-Aug-06 4:00
bhushan thorat19-Aug-06 4:00 
AnswerRe: javascript coding for onmouseover event Pin
bgates197019-Aug-06 11:18
bgates197019-Aug-06 11:18 
Questionhow to do this? Pin
Amit Agarrwal19-Aug-06 3:55
Amit Agarrwal19-Aug-06 3:55 
AnswerRe: how to do this? Pin
Colin Angus Mackay19-Aug-06 21:30
Colin Angus Mackay19-Aug-06 21:30 
Questionmenu generation Pin
omi9819-Aug-06 3:34
omi9819-Aug-06 3:34 
AnswerRe: menu generation Pin
Suresh Pirsquare19-Aug-06 4:59
Suresh Pirsquare19-Aug-06 4:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.