Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
人のリストを表示する dataGrid があります。
問題は、dataGrid が次のように表示されている人物の画像を表示しないことです。
System.Byte[].
応答ヘッダーを使用して画像を表示するコードを記述できる Http Handler(.ashx) を作成し、そのハンドラーを以下のように使用して画像を表示できます。
<asp:Repeater ID="repeater1" runat="server"> <ItemTemplate> <img src="displayImage.ashx?id=111" style="text-align:center"/> </ItemTemplate> </asp:Repeater>