It's very easy to remove Underline from Linkbutton.
We can do it by following ways:-
1). Write inline style property as
<asp:LinkButton id="lnk_view" runat="server" Text="View Details" style="text-decoration: none; color: blue;">View Details</asp:LinkButton>
2).We can make a CSS for it
<style type="text/css">
.link_Under_line_Blue
{
text-decoration: none;
color: blue;
}
</style>
And in link button we can write as:-
<asp:LinkButton id="lnk_view" runat="server" Text="View Details" CSS="link_Under_line_Blue">View Details</asp:LinkButton>
And also every time you click on Linkbutton,the color of linkbutton will be remain as Blue with the help of "color:blue" style property.
We can do it by following ways:-
1). Write inline style property as
<asp:LinkButton id="lnk_view" runat="server" Text="View Details" style="text-decoration: none; color: blue;">View Details</asp:LinkButton>
2).We can make a CSS for it
<style type="text/css">
.link_Under_line_Blue
{
text-decoration: none;
color: blue;
}
</style>
And in link button we can write as:-
<asp:LinkButton id="lnk_view" runat="server" Text="View Details" CSS="link_Under_line_Blue">View Details</asp:LinkButton>
And also every time you click on Linkbutton,the color of linkbutton will be remain as Blue with the help of "color:blue" style property.
No comments:
Post a Comment