Reputation: 1312
how to add a background image to my asp:linkbutton using code behind? I want to change the background image once the link is clicked? thx
<asp:LinkButton ID="home" runat="server">home</asp:LinkButton>
Upvotes: 0
Views: 890
Reputation: 3919
in page_load event when you click and make a postback change image
if (IsPostBack)
{
ImageButton1.ImageUrl = "~/Images/newimage.gif";
}
Upvotes: 1