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

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

slide show

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

Hi all!

can any one tell me how to make a slide show with photos that i'm pulling from a folder using a data list

this is the code I got so far!



<asp:Label ID="checklable" runat="server" Visible="False"></asp:Label>
     <asp:DataList ID="DataList1" runat="server" RepeatColumns="5">

                <asp:Image Width="50" Height="50" ID="Image1" ImageUrl='<%# Eval("FilePath") %>'
                    runat="server" />
                <br />
                    <asp:HyperLink ID="HyperLink1" Text='<%# Eval("FileName") %>' NavigateUrl='<%# Eval("FilePath") %>'
                        runat="server" /><br />


Thanks a Million


View Complete Post

More Related Resource Links

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

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

adding play / stop button to a simple slide show


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">

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??



Flash Slide Show with jquery


Hi all! I'm new to web development. I want to create a Flash Slide Show like this link: http://www.galaxybsg.com/

How do i???

Thanks all!

Picture Library slide show setting


Is there any way to change the settings of a picture library slide show? My clients would like to see some of the attributes of the pictures in the slide show.


Picture slide show sp2010

I have a requirement to customize the out of thebox sp2010 picture slide show. I hope it is done by imglib.js. wondering, how can I do using c#/js to customize. thanks

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?

Cannot open windows .net form in powerpoint slide show window


We have successfully created .NET addin in PowerPoint. On the click of this addin, we have opened a .net Form where there are three buttons(say Login and etc). On the click of Login button, we opened Login form. This works perfectly in PowerPoint.  But when we have slide show window, on the click on Login button, Login form gets opened on main PowerPoint window, but not on SlideShow window. This works properly on winXP m/c. We are facing this issue on win7 m/c. Please help me.

Thanks in advance.

GridView control to show master-child or master-slave data, written in c#, asp.net

I previously made a master slave datagrid using Visual Studio 2003 .Net (original article) that would allow users to show data to clients using collapse and expand features. These features however did not carry over to gridview for many users. This tutorial will explaing how to create a collapsable/expandable gridview in frameworks 2.0 and higher

Show grand total running total in GridView Footer

In many scenarios we need to display Running total as well as Grand total in GridView footer. In this post i will try to explain in an easy way that how we can display running total & Grand total in a GridView footer combindly. To explain this solution using an example here i use a sales order report. The report contains all sales order amount in a tabular way. I will use a GridView to display sales order amount and use GridView footer to display Running total & Grand total. Let we have a customer table with id and name column plus an orders table with OrderID,CustomerID,OrderDate & Amount. Now our goal is to show all customers order with amount as well as page wise running total & grand total. Note that running total is necessary when you enable paging in a GridView where as Grand total is always you can consider.

create user wizard login error message dont show in a message box?




i am using create user wizard and capturing other information within content template when a new user

registers. Some of the textboxes are binded to required field validators.


there is a validation control on the page and ShowMessage box is True.

If they dont complete some of the text boxes then the message box pops Up with the error message.

It does not however include information errors like "User already exists" or Email address already exists

from the create user wizard membership  UserName and Password Textboxes


is it possilbe to hook all of these up so I get one message box with all errors including membership ones?




Can't get an Icon to show for Desktop shortcut and Program Menu



I've created a SetupWizard, but can't get it to show the Icon for the shortcut on desktop and program menu. The installation goes fine without any errors, the only problem is the icon.

I've made a shortcut of my exe file in the Application Folder and dragged the shortcut to the Desktop folder, then on the shortcut properties, I assigned it an icon picture located in Application Folder.

Any suggestions will be very much appreciated.


Why show only one record?



// Update these variables to values whatever you are storing in your table
        // If you are storing as CARD NUMBER, update this Card Number Attribute Name to CARD NUMBER
        string strCardNumberAttributeName = "Credit card number";
       // string strCardTypeAttributeName = "1";
        string strExpiryDateAttributeName = "Expiry date";
        DataTable dtPaymentDetails = new DataTable();

        string queryString = "SELECT tbl_Payments.PaymentId, tbl_PaymentDetails.AttributeName, tbl_PaymentDetails.Value, tbl_Payments.PaymentType FROM tbl_Payments INNER JOIN tbl_PaymentDetails ON tbl_Payments.ID = tbl_PaymentDetails.PaymentId WHERE ATTRIBUTENAME IN ('" + strCardNumberAttributeName +
                                   "','" + strExpiryDateAttributeName + "') ORDER BY PaymentId";

        string connectionString = "data source=.\\SQLEXPRESS;Integrated Security=SSPI;" +
                                           "AttachDBFilename=|DataDirectory|\\BurnbetDatabase.mdf;User Instance=true";
        using (SqlConnection connection = new SqlConnection(connectionString))
            SqlCommand command = new SqlCommand(queryString, connection);
            SqlDataReader reader = command.ExecuteR

Modify Menu adapter to show selected


Hey, I need some help modifying the menu adapter code to give child <ul> elements a class value indicating that the parent is selected. It should render like this:


< ul class="AspNet-Menu">
	< li class="AspNet-Menu-WithChildren  AspNet-Menu-ChildSelected">
		< a href="/rockit/admin/Default.aspx" class="AspNet-Menu-Link  AspNet-Menu-ChildSelected">
		< span>Mypage< /span>< /a>
			< ul class="AspNet-Sub AspNet-Sub-Selected">
				< li class="AspNet-Menu-Leaf  AspNet-Menu-Selected">
					< a href="/rockit/admin/Default2.aspx" class="AspNet-Menu-Link  AspNet-Menu-Selected">
					< span>Test< /span>< /a>
				< /li>
				< li class="AspNet-Menu-Leaf">
					< a href="/rockit/Default3.aspx" class="AspN

show sub item to user



         I have a form where I took 2 dropdownlists. In 1st ddl I displayed all Religions and in 2nd DDL I displayed related castes. When my user filled the form so everything saved it. But when user logged in I unable to show him his choosen caste. Religion I displayed throgh RellgionId. But I don't understand how to do that?


      Can anyone tell me where I am doing mistake?



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