.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

adding play / stop button to a simple slide show

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :ASP.Net

Hi guys,

I got the following code with the help of raghav khunger and I wanna add a play and stop button on it to cycle the pictures orderly and stop them. how can I do that?

<%@ Page Language="C#" %>

<%@ Import Namespace="System.Web.Services" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <style type="text/css">
            width: 100px;
            height: 100px;
            width: 400px;
            height: 300px;
    <form id="form1" runat="server">
    <asp:Image ID="imgMain" CssClass="main-image" runat="server"  ImageUrl="http://www.clubalbuquerque.com/files/images/15%20Random%20Greenery.JPG"/>
    <br />
    <div id="thumb-container">

View Complete Post

More Related Resource Links

Stop Slide Show Extender on Mouse Over



I have used a ajax control toolkit slide shox extender to display a slide show of images.

Currently, when a user hovers mouse over the slide show, the slide keeps on changing. I want that the slide should not change, if a user hovers the mouse. Can anyone please tell me how can I do this??



slide show without button click



i wish to make a slide show of the images in my wpf application with fade in and fade out effect and that too automatically i.e without button click event. I am using the C# for programming.

Can any one guide me how can i do this??



Cannot play powerpoint slide show on MOSS



I use to be able to play .pps file on the Sharepoint 2003 as powerpoint slide show. On Sharepoint 2007 it open like a normal powerpoint file. Anyway to make sure the file just open like a powerpoint show?

A Simple and Extensible Radio Button Style GridView

The GridView is one of the significant controls in ASP.NET 2.0 and later versions. No doubt it reduces a lot of work time. However, customizing the GridView control is not an easy task. For example, it's hard to add a radio button column to the GridView. This article demonstrates the reason why a radio button column cannot act as normal and how to create a simple and extensible radio button GridView.

datalist image slide show problem


hi friends

i am binding  images dynamically(back end)for a datalist .iam applying a slideshow for it .I am getting a problem to apply slideshow for dyanmically binded images.If the define in a div statically it working perfectly

for example pls go through my code below:

<script type="text/javascript">
$(document).ready(function() {
        fx: 'scrollLeft' // choose your transition type, ex: fade, scrollUp, shuffle, etc...

<div class="slideshow">
        <img src="images/30_dummy.jpg" width="200" height="200" />
        <img src="images/aquarius.gif" width="200" height="200" />
        <img src="images/star.gif" width="200" height="200" />
        <img src="images/the-proud-indian-flag-1.jpg" width="200" height="200" />

I above code works perfectly and the slide show e

how to start and stop thread with button


hi all,

i am new to threading.

im trying to write a simple application which will update a textbox (on other thread) when button clicked.

and stops when clicking on "stop".


when i click on the "start" it  starts but for some reason the app freezes, when i debug the prog i can see it  is running  but the main window stays frozen.


please help.

ReportViewer Calendar button Click does not show calendar


I have a reportviewer on a page which is grabbing a report from a report server. the page is basically just a dropdownlist and a reportviewer control. The problem I have is that in the report the user have to provide the dates for teh report. The reportviewer automatically adds the textbox for the date entry and a calendar icon in front of it so the user can select the date. if I look at this page  in FireFox, when you click on the calendar button created by the reportviewer, the calendar control show up momentrily and dispappears. If you look at the same page in IE 7.0 nothing happens other than the page appears to be submitted. Does any body have any ideas on how to go about troubleshooting this bug?



Adding a button to the Report Portal

Hi everyone, I am using SSRS 2008 and would like to know if there is a way to customize the Report Portal?  I need to add a button that the user can click on when they find a bug or the report doesn't work.  The button would open an email window for the user to type in the problem they are experiencing and it would be sent to our Ontime system.      Thanks for your help!  Youngmon...  

Twitter - Simple way to show tweets using the API?

I want to display the last 4 tweets on my website.  I've done the following below which works fine but I'd like all of the urls and twitter names in the title to be hyperlinked.  Is parsing the title the best option or is there another approach I should take?Sub GetTweets() Dim xmlDoc = New System.Xml.XmlDocument xmlDoc.Load("http://search.twitter.com/search.atom?q=asp.net&rpp=4") 'create the select the nodes Dim root As System.Xml.XmlElement = xmlDoc.DocumentElement Dim nodeList As System.Xml.XmlNodeList = xmlDoc.GetElementsByTagName("entry") lblTweets.Text = "" Dim uri = "" Dim name = "" Dim title = "" For i As Integer = 0 To nodeList.Count - 1 name = nodeList.Item(i).ChildNodes(9).ChildNodes(0).InnerText name = name.Substring(0, name.IndexOf("(")) uri = nodeList.Item(i).ChildNodes(9).ChildNodes(1).InnerText title = nodeList.Item(i).ChildNodes(3).InnerText lblTweets.Text += String.Format("@<a style='color:#01a54e;' href='{0}' target='_blank'>{1}</a> {2}<br />", _ uri, name, title) Next End Sub

How to show a progressbar in button click in wpf?

I want to read the large data from a database in a read button click event. while reading the data i want to show a circlular progress bar  or any status bar on the window. I tried so many samples. I am enabling a progress bar in read button click but the progress bar is coming on the window after the data is read from the database and filled in textboxes. But my requirement is not that i want to show a progress bar whenever the user clicks on read button and want to disable the progress bar after reading the data. can u please suggest me a code for this in wpf?

Sharepoint slide library adding functionality.

The slide library in Sharepoint allows you to upload Powerpoint slides to it, then to copy a slide to a new presentation and edit it, or check it out so you can edit it and check back in the changes. Unfortunately the ability to check out multiple slides at once to edit is not possible, only the ability to copy them to a new presentation, so you lose all data stored with them.  I am trying to find a way to be able to check out multiple slides at once, then be able to check them in when you have made changes.   My questions are basically:  Can I add a button to the Sharepoint slide library interface? How can I interact with the client machine in terms of opening Powerpoint and getting them to be able to check out the slides? I have the Sharepoint VSTO tools installed and this must be for Sharepoint 2007. Thanks  

report manager parameters , back button do not show

Hi, not sure this is an expected behavior.  My drill through reports have parameters that are passed from the first report.  once drill through, somehow the parameters are not showing in report manager.  also the Back arrow is also missing from the second report.  is this expected?thanks

automatic slide show

Hi all: How can I make this to happen automatically instead of on mouse hover:  <script type="text/javascript">         $(document).ready(function () {             lastBlock = $("#a1");             maxWidth = 820;             minWidth = 30;             $(lastBlock).animate({ width: minWidth + "px" }, { queue: false, duration: 600 });             $(this).animate({ width: maxWidth + "px" }, { queue: false, duration: 600 });             currentBlock = this;             lastBlock = this;             //$(lastBlock).children('.comment').hide();             $("ul li a").hover( function () {    $(this).children('.comment').hide();    $(this).children('img').hover(function () { $(currentBlock).children('.comment').hide(); });    $(lastBlock).children('.comment').show();    $(lastBlock).animate({ width: minWidth + "px" }, { queue: false, duration: 600 });    $(this).anima

Button inside ListBox does't show content

Hi,   We've made a ControlTemplate that defines a rounded border and some animation on mouseover that is default for our buttons, them we put a ContentPresenter inside this Button, on a layer above that default background so we can change the content of the button depending on where we`re using it. Them, we created a Style (DefaultButtonStyle) that would set the template to our template. And finally, for each diferent button we created a Style (BasedOn the DefaultButtonStyle) that would set a ToolTip and the Content, the Content is a Rectangle with the fill property set using DynamicResource to a DrawingBrush with the image we want for that button. Now, a ListBox uses a DataTemplate that has a button with one of the styles we`ve defined earlier. (Some like a print button for each row on the table).   The big problem is: When we run the program it only shows the image on the last line of the ListBox, all the other lines show the buttons without the Rectangle. Trying to see if we could reproduce the error we`ve noticed that even if its not on a ListBox, if we open 2 instances of the same screen, the button would not show. Is there any limitations on using styles and templates for this? It only bug the Content we added on the Styles with BasedOn the DefaultButtonStyle, the other properties like animations and background (defined in the defaul

Adding a Cancel Button

Hi, I have an application that performs a very big algorithm when a button is clicked. I'm trying to add a "Cancel Button" if the user wants to cancel the operation. The problem is the cancel button doesn't fire any event while the program is executing another events. Actually it seems beeing inactive. Any idea of how can I solve the problem?

Another Simple Question - Adding a Picture to My Site

Hi, I'm trying to add a profile picture to my profile on SharePoint 2010 but under Edit my profile there isn't a option. I believe it should normally be under Basic Information. Is there a way to add this option?

Javascript in Datalist .... on click of Button Show details in Another DIV

Hello Experts My Question is how to Set / call javascript in a Datalist , Where to define / Add Attrbutes for that / My Functionatilty requires on click of a button i have to show details in another DIVThanks ... Any Code Example is Much appreciated .. Thanks
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend