現在、これは私のボタンタグがどのように見えるかであり、これが私が望む方法です:
<button class="glossyBtn" type="submit" id="Save" name="Save">
<img style="vertical-align: middle" alt="" src="<%:Url.Content("~/Content/blueprint/plugins/buttons/icons/tick.png")%>" />
<span style="vertical-align: middle">Save</span>
</button>
しかし、同じ img タグと span タグを追加したい asp:Button タグもありますが、変更方法がわかりません。ボタンのテキストの左側にアイコン画像を追加できます。
<asp:Button runat="server" CommandName="Insert" ToolTip="Insert" Text="Insert" CssClass="glossyBtn"/>
私は asp:DynamicHyperLink も持っており、画像とスパンの機能を次のものに追加したいと考えています。
<asp:DynamicHyperLink CssClass="glossyBtn" ID="InsertHyperLink" ToolTip="Add New Item" runat="server" Action="Insert">Add New Item
</asp:DynamicHyperLink>
洞察に満ちたヒントをいただければ幸いです。