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

Similar Threads

image field and sqldatasource 3
The Last of Us - Part I (PC) 6
DisplayMaster\DetailResults 1
RIP Photobucket. 7
Refreshing an image 9
Images in ASPX 4
duplicate display on search 1
Varbinary 7

Top