Solved

How to dynamically add images to repeater.

Posted on 2012-03-26
3
258 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
3 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now