R
Ryan Liu
Hi,
<asp:imagefield dataimageurlfield="LastName"
dataimageurlformatstring="~\Images\{0}.jpg"
alternatetext="Employee Photo"
nulldisplaytext="No image on file."
headertext="Photo"
readonly="true"/>
Is the sample on MSDN doc.
But what about I need diffrent rules other than simple string replacement
{0}, e.g. use different images based on data field which type is an enum?
So a translation needed, how to do that declaratively?
I know I can accomplish same goal using <asp:TemplateField>, but just
thought there should be a way to make <asp:imagefield> more useful.
Thanks!
Ryan
<asp:imagefield dataimageurlfield="LastName"
dataimageurlformatstring="~\Images\{0}.jpg"
alternatetext="Employee Photo"
nulldisplaytext="No image on file."
headertext="Photo"
readonly="true"/>
Is the sample on MSDN doc.
But what about I need diffrent rules other than simple string replacement
{0}, e.g. use different images based on data field which type is an enum?
So a translation needed, how to do that declaratively?
I know I can accomplish same goal using <asp:TemplateField>, but just
thought there should be a way to make <asp:imagefield> more useful.
Thanks!
Ryan