DataImageUrlFormatString

S

sjsean

I trying to display an image on my page and the photo information is
gathered from a database table. This was working correctly when the
image was stored at the root level, but I have changed where they
upload into a subfolder named photos and now the page won't display
them. I've tried using the DataImageUrlFormatString but that didn't
seem to change my results. Maybe I'm not correctly populating the
information

from what I've read on the net it seems that it would be:

<asp:ImageField DataImageUrlField="photoname"
DataImageUrlFormatString="~/photos/{0}">

the extention is in the field photoname so I wouldn't think that is
required.

Thanks for the help.

Sean
 
S

sjsean

I trying to display an image on my page and the photo information is
gathered from a database table.  This was working correctly when the
image was stored at the root level, but I have changed where they
upload into a subfolder named photos and now the page won't display
them.  I've tried using the DataImageUrlFormatString but that didn't
seem to change my results.  Maybe I'm not correctly populating the
information

from what I've read on the net it seems that it would be:

<asp:ImageField DataImageUrlField="photoname"
DataImageUrlFormatString="~/photos/{0}">

the extention is in the field photoname so I wouldn't think that is
required.

Thanks for the help.

Sean

Nevermind I did get it working.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top