Solved

asp.net display css image linkbutton when enable = false

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Name space syntax error 12 41
Alignment is not working correctly. 8 32
Objects on Same Line 2 18
Make navigation bar highlight the page you are on. 1 8
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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 tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

911 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

22 Experts available now in Live!

Get 1:1 Help Now