Solved

asp.net display css image linkbutton when enable = false

Posted on 2010-11-09
2
999 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 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

777 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