Student Reviews
( 5 Of 5 )
1 review
Video of Display images in sequence in an image slideshow Part 135 in ASP.net course by kudvenkat channel, video No. 135 free certified online
Text version of the video
http://csharp-video-tutorials.blogspot.com/2013/07/display-images-in-sequence-in-image.html
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation1
Slides
http://csharp-video-tutorials.blogspot.com/2013/08/part-135-display-images-in-sequence-in.html
All ASP .NET Text Articles
http://csharp-video-tutorials.blogspot.com/p/free-aspnet-video-tutorial.html
All ASP .NET Slides
http://csharp-video-tutorials.blogspot.com/p/aspnet-slides.html
All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenkat/playlists?view1&sortdd
All Dot Net and SQL Server Tutorials in Arabic
https://www.youtube.com/c/KudvenkatArabic/playlists
In Part 134, we discussed adding image slideshow to a website or a web application. the problem with slideshow is that, it displays a random image every one second. Let's say our requirement is such that, we want to display images in order from 1.jpg, 2.jpg to 8.jpg. Also, below the image, we want to display the number of the image that is being displayed. Please watch Part 134, before proceeding. We will be modifying the example, that we started in Part 134.
To achieve this,
Step 1: Include "Label1" control in the aspx page. This label control displays the image number that is being displayed.
[br /][asp:Label ID"Label1" Font-Bold"true" runat"server"][/asp:Label]
Step 2: Change the code in SetImageUrl() function as shown below
private void SetImageUrl()
{
if (ViewState["ImageDisplayed"] null)
{
Image1.ImageUrl "~/Images/1.jpg";
ViewState["ImageDisplayed"] 1;
Label1.Text "Displaying Image - 1";
}
else
{
int i (int)ViewState["ImageDisplayed"];
if (i 8)
{
Image1.ImageUrl "~/Images/1.jpg";
ViewState["ImageDisplayed"] 1;
Label1.Text "Displaying Image - 1";
}
else
{
i i + 1;
Image1.ImageUrl "~/Images/" + i.ToString() + ".jpg";
ViewState["ImageDisplayed"] i;
Label1.Text "Displaying Image - " + i.ToString();
}
}
}
At the moment, there is no mechanism in place to start or stop the slideshow. We will discuss this in our next video.