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



Go to topic 48890

Return to index page 193
Return to index page 192
Return to index page 191
Return to index page 190
Return to index page 189
Return to index page 188
Return to index page 187
Return to index page 186
Return to index page 185
Return to index page 184