使用图像而不是asp.net中的按钮 [英] using image instead of button in asp.net
本文介绍了使用图像而不是asp.net中的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们是否可以使用C#在asp.net中使用图像而不是按钮,我想使用图像按钮而不是asp.net的按钮控件.
can we use image instead of button in asp.net using C#, i want to use image button instead of button control of asp.net. how can i do it??
推荐答案
msdn图像按钮链接.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.aspx
msdn link for image button.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.aspx
为了帮助您使用图片按钮,
http: //www.aspxcode.net/free-asp-net-sample-source-code-c.aspx?Topics=How%20to%20Use%20ImageButton%20Web%20Server%20Controls [
Hi,
To help you with using the image button,
http://www.aspxcode.net/free-asp-net-sample-source-code-c.aspx?Topics=How%20to%20Use%20ImageButton%20Web%20Server%20Controls[^]
Hope this helps.
是的,您可以使用图像按钮
Yes you can use image button
<asp:ImageButton ID="btnIamge" runat="server" ImageUrl="mybutton.jpg"
onclick="btnIamge_Click" />
在C#代码中
in c# code
protected void btnIamge_Click(object sender, ImageClickEventArgs e)
{
}
这篇关于使用图像而不是asp.net中的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文