user2252401
user2252401

Reputation: 31

how to make a button look like a hyperlink aspx.net

I would like to use a button (that doe's more than just links) appear as hyperlink in aspx.net. meaning the button wont have the white background it normally has, and simply look like a highlighted text, like a link. thanks in advance!

Upvotes: 3

Views: 7196

Answers (2)

Eli
Eli

Reputation: 14827

Give your button a CssClass

<asp:Button ID="button" Text="Button" CssClass="button" />

Then apply css for your button:

.button {
    background-color:transparent;
    border:none;
    cursor:pointer;
    text-decoration:underline;
    padding: 0px;
}

Upvotes: 8

Related Questions