How to Remove Underline from Link button in

Posted by vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 11077
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">

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.

Comments or Responses

Login to post response