Solved

asp.net display css image linkbutton when enable = false

Posted on 2010-11-09
2
990 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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now