【发布时间】:2011-02-08 15:36:12
【问题描述】:
我知道我可以为此使用asp:TemplateField,但是在 asp:GridView 中使用标准 asp:BoundField 或 asp:ImageField,是否可以指定多个字段并在 FormatString 字段中将它们用作 {0} { 1} {2} 等...
例如
<asp:ImageField DataImageUrlField="ProfileImageId,UserGuid" DataImageUrlFormatString="img-profile.ashx?uid={0}&pid={1}" />
我一直在思考这个问题。这会比使用asp:TemplateField 更简洁
【问题讨论】: