开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜