asp:GridView ImageField DataImageUrlField - specifying multiple fields?
I know I 开发者_Go百科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
HyperlinkField can use multiple fields to format the url, but you cannot do this with the other *Field columns.
精彩评论