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.
如何使用后面的代码向我的 asp:linkbutton 添加背景图像?单击链接后,我想更改背景图像吗?谢谢
<asp:LinkButton ID="home" runat="server">home</asp:LinkButton>
in page_load event when you click and make a postback change image if (IsPostBack) { ImageButton1.ImageUrl = "~/Images/newimage.gif"; }