?
Solved

How to dynamically add images to repeater.

Posted on 2012-03-26
3
Medium Priority
?
267 Views
Last Modified: 2012-06-21
I have a database : dbimages.
Table : mstimages (contains one field imageid and path)
con - sqlconn
I want to assign all images to repeater.
0
Comment
Question by:searchsanjaysharma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 2000 total points
ID: 37769776
0
 
LVL 35

Expert Comment

by:YZlat
ID: 37771187
you have two options: adding image via ItemTemplate or via code-behind.

ItemTemplate is simpler:

<ItemTemplate>
<asp:Image ID='<%#
Container.DataItem("ImgID") %>' Runat="Server" ImageUrl='<%#
Container.DataItem("ImgPath") %>'/>
</ItemTemplate>
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 37771849
ok
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question