|
Subject:
|
asp.net(vb.net)
|
|
Posted By:
|
saraswathyrajaram
|
Post Date:
|
8/22/2006 2:08:05 PM
|
hi all
can anyone help me in displaying images in a datalist i have the phyiscal path of the image in table line d:AXS/pictures/5678.jpeg
how can i bind that image in an image control within the itemtemplate of the datalist
|
|
Reply By:
|
dparsons
|
Reply Date:
|
8/22/2006 2:31:37 PM
|
On your aspx page, in your item template add your image control and for the ImageURL do this:
ImageURL='<%# Container.DataItem("image") %>'
backend:
Datalist.datasource = datasource Datalist.databind()
Set the Data Item value to the correct column in your datasource.
"The one language all programmers understand is profanity."
|
|
Reply By:
|
monika.vasvani
|
Reply Date:
|
8/26/2006 7:25:05 AM
|
hi
I think u can use datalist_itembound event and u can be bind image in datalist.I hope it will be working.
Thanks monika
|