Css for LinkButton #2


Hi all,
I need Css for Linkbutton when the page is active that link button should be in other color.
 
-1
santosh12
5/4/2009 2:24:43 PM
📁 asp.net.client-side
📃 24353 articles.
⭐ 2 followers.

💬 5 Replies
👁️‍🗨️ 3129 Views



You can change color or linkbutton in your code.
LinkButton1.Attributes.CssStyle.Add("color", "black"); //backend code
 

Thanks
Naresh Prakash.
Click Here : Sky is the not limit

Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers.
-1
nareshprakash
5/4/2009 2:46:46 PM

Like this?
<style type="text/css">
a.specialAnchor
{
 color:red;
}
a.specialAnchor:hover
{
 color:green;
}
</style>
<linkbutton id="LinkButton1" cssclass="specialAnchor" runat="server">Special</linkbutton>
NC...
-1
NC01
5/4/2009 3:20:35 PM

i thought he said when the page is active
-1
mo
5/5/2009 2:25:38 AM

 Hi Santosh12,
You said...
santosh12:

I need Css for Linkbutton when the page is active that link button should be in other color.

 
So, your LinkButton is actually Tab Button and you want to set it to active when specific tab related to it is selected?
If yes, then you have to manually set the color of LinkButton as per nareshprakash mentioned.

Please mark as Answer if it helps u. Thanks!

Parth Patel
Techsture Technologies
Software Developer
Ahmedabad
-1
Coool
5/5/2009 4:16:30 AM

Write this in ur code..
 
 $(function(){
 $('#lbn').css('background-color','Red');
});
-1
anup1252000
5/5/2009 5:43:05 AM
Reply: