如何在ASP.Net中创建图像按钮?

时间:2012-08-03 15:27:16

标签: asp.net forms button

我如何在ASP.Net中表达以下内容,而不是HTML?

<input type="image" class="no-border" src="img/forms/submit_btn.png" alt="submit" name="submit" />

1 个答案:

答案 0 :(得分:4)

<asp:ImageButton runat="server" ImageUrl="img/forms/submit_btn.png" CssClass="no-border" ToolTip="Submit" name="Submit" Id="SubmitImageButton" />