Solved

asp.net display css image linkbutton when enable = false

Posted on 2010-11-09
2
1,000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google Page Speed Insight with srcset 4 81
RegEx with optional part 4 42
asp.net web application 3 26
Change box shadow 1 29
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

809 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