Wrox Programmer Forums
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 31st, 2004, 03:01 AM
Authorized User
 
Join Date: May 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Repeater

Hi,

I am trying to output images from my SQL db onto my .aspx file

This is the code on my .aspx file

Code:
<asp:repeater id= "images" runat="server"> 
<itemtemplate>  
<tr> 
<td><img src="images/<%#Container.DataItem("Picture")%>" name="Image13" width="120" height="83" border="0"></td>
</tr>
</itemtemplate>
</table></td>
</footertemplate>
</asp:repeater>
The problem is that when I do this then the images repeat one after another. I want to organize my page layout better and want to put specific files in the "Picture" column in specific places i.e. I want only specific pictures not all the pictures.

Is there anyway I can pull out these files from the "Picture" column instead of pulling out the entire column?


 
Old May 31st, 2004, 02:35 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

it's better To
constuct your query so you will got the required records


Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
why do Repeater is used... kk_katepally General .NET 1 December 22nd, 2004 06:36 PM
Repeater collie VB.NET 2002/2003 Basics 1 December 2nd, 2003 05:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.