zevinganez
-
8/25/2011 5:28:45 AM
URL of "media selection" field type
Hi all,
I have a document type with an attibute "Image" with a field of type 'media selection'. I'm storing it has text (attribute type).
e.g. DB data: Image - ~/SiteOfMad/media/Banners/banner1.png?width=223&height=146&ext=.png
I'm using the following code to show it: <img src='<%# GetAbsoluteUrl(Eval("Image").ToString()) %>' width="223" height="146" />
Is this the correct way to do it?
Tks.
|