Avatar of doramail05
doramail05
Flag for Malaysia asked on

asp.net display css image linkbutton when enable = false

when linkbutton is enable, it uses the css .arrowpreviousbutton below

but once it is enable = false, that would be somehow a way to show another css or something
.arrowpreviousbutton  {
	        background-image:url('../images/arrowprevious1.png');
	        background-position:top;
	        background-repeat:no-repeat;
	        width:20px;
	        height:20px;
	        display:block;
	        text-decoration:none;
	        border:0px;
        }

Open in new window

ASP.NETC#CSS

Avatar of undefined
Last Comment
doramail05

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
niralshah

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
doramail05

ASKER
no prob
this.lbtnLast.Enabled = !_PageDataSource.IsLastPage;

            if (!lbtnLast.Enabled)
            {
                this.lbtnLast.CssClass = "arrowlastbuttond";
            }
            else
            {
                this.lbtnLast.CssClass = "arrowlastbutton";
            }

Open in new window

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck