Web、Visual Studio 2013、C#アプリケーションを作成しています。 Imageをasp:DropDownListにバインドする必要があります。 これまで、私が読むすべての記事は同じことをしています。私は絵を持っていることをデータバインド:image/png; Base64形式の画像をドロップダウンリスト
<asp:DropDownList id="ddlnick" CssClass="ddlnick" Width="400px" runat="server" DataTextField="Picture" DataValueField="User_id" onselectedindexchanged="ddlNick_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
と私はデータベース
li.valueが絵にphisicalパスですforeach (ListItem li in ddlnick.Items)
{
if (li.Text != "")
li.Attributes["title"] = li.Value;
}
からデータをロード...
私の問題はフォーマット付きデータベース
data:image/png;base64
と私はドロップダウンリストにバインドする方法を見つけることができませんでした。
それは可能ですか?