Click here to Skip to main content
15,921,793 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionmove data from access to sql 2005 using ado.net Pin
playout20-Aug-06 3:42
playout20-Aug-06 3:42 
GeneralRe: move data from access to sql 2005 using ado.net Pin
Guffa20-Aug-06 4:43
Guffa20-Aug-06 4:43 
QuestionHTML Tag Pin
Socheat.Net20-Aug-06 1:28
Socheat.Net20-Aug-06 1:28 
AnswerRe: HTML Tag Pin
Guffa20-Aug-06 1:30
Guffa20-Aug-06 1:30 
GeneralRe: HTML Tag Pin
Socheat.Net23-Aug-06 16:48
Socheat.Net23-Aug-06 16:48 
AnswerRe: HTML Tag Pin
Guffa23-Aug-06 22:11
Guffa23-Aug-06 22:11 
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 

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.