Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 31st, 2004, 03:01 AM
Authorized User
 
Join Date: May 2004
Location: , , .
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?


Reply With Quote
  #2 (permalink)  
Old May 31st, 2004, 02:35 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:07 AM.


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