Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 754659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:02:22+00:00 2026-05-14T15:02:22+00:00

I have a jquery Image slider in a content page that worked fine. Once

  • 0

I have a jquery Image slider in a content page that worked fine. Once I converted it into a asp repeater the first image of the repeater would display twice, then run normally.

Any idea on why the repeater is causing this?

I think I discovered that the first image link

<ItemTemplate>
 <a href='<%#Eval("Url")%>'>
 <img src='<%#Eval("Image")%>' alt="Spring Break 2011"
  rel='<h3><%#Eval("Title")%></h3><%#Eval("Caption")%>'/></a>
</ItemTemplate>

I have to place class=”show” in the first item only. Does anyone know how to implement this during the first time it goes through. Hmm

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:02:22+00:00Added an answer on May 14, 2026 at 3:02 pm

    Something like this should work for you:

    <ItemTemplate>
     <a href='<%#Eval("Url")%>' <%# Container.ItemIndex == 0 ? "class='show'" : "" %> >
     <img src='<%#Eval("Image")%>' alt="Spring Break 2011"
      rel='<h3><%#Eval("Title")%></h3><%#Eval("Caption")%>'/></a>
    </ItemTemplate>
    

    Reference the Container.ItemIndex property for the item being databound to the repeater and if it is 0 (i.e. item 1), output a class attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created jquery image slider and it is working good. However i have
I have a jQuery function that replaces thumbnails with the main image. This is
I have an image in my jquery mobile fixed header. When the page loads
I have been JQuery UI Slider with content and there are many images in
On a page I have multiple Jquery UI Sliders that fade out/in the opacity
I have taken and essentially lightly modified a jQuery image slider to operate how
I am trying to create a jQuery content slider that will stop when a
I have a annoying issue involving javascript/jquery and asp:ContentPlaceHolders that I can't seem to
SLIDER CODE http://tympanus.net/codrops/2012/03/15/parallax-content-slider-with-css3-and-jquery/ IMAGE MOCK: I'd like to preface this by saying I'm not
I have a pretty basic 'featured-list - image slider' implemented above my content in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.