?
Solved

asp.net display css image linkbutton when enable = false

Posted on 2010-11-09
2
Medium Priority
?
1,024 Views
Last Modified: 2012-05-10
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

0
Comment
Question by:doramail05
2 Comments
 
LVL 7

Accepted Solution

by:
niralshah earned 2000 total points
ID: 34092631
When you disable your link button you need to write following line of code to change the CSS for your link button

linkbutton1.CssClass = "CSS1";
0
 
LVL 1

Author Comment

by:doramail05
ID: 34093736
no prob
this.lbtnLast.Enabled = !_PageDataSource.IsLastPage;

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

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question