asp:GridView ImageField DataImageUrlField - specifying multiple fields?
Posted
by Jason Jong
on Stack Overflow
See other posts from Stack Overflow
or by Jason Jong
Published on 2010-04-16T01:13:24Z
Indexed on
2010/04/16
1:23 UTC
Read the original article
Hit count: 846
I know I can use asp:TemplateField
for this, but using the standard asp:BoundField or asp:ImageField in the asp:GridView, is it possible to specify multiple fields and use them in the FormatString field as {0} {1} {2} etc...
For example
<asp:ImageField DataImageUrlField="ProfileImageId,UserGuid" DataImageUrlFormatString="img-profile.ashx?uid={0}&pid={1}" />
I've always pondered on this. This would be much neater than using asp:TemplateField
© Stack Overflow or respective owner