473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to control the look of anchors with disabled=disabled attribute?

Hi All,

I am using ASP.Net Webcontrol to emit some HTML. The control is either
a
HyperLink or LinkButton. When I disable the control (by setting the
controlls Enabled property) the following example HTML is emitted:

<a id="nevermind" disabled="disabled" class="whatever">Reports</a>
IE shows the Reports link with greyed out text. I would like control
over the color, size, font. So. how do I
set the look of anchors that have "disabled=disabled" attribute?

thanks

Apr 23 '07 #1
0 1173

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Deano | last post by:
Hi, I need to disable a command button at some point. Easy enough. Initially in design view it is set as enabled. Now once I disable it, how can I ensure that when the app is restarted, the...
4
by: Peter | last post by:
Hello, Thanks for reviewing my question. I am just starting out create a custom control following the KB example "Create a Data Bound ListView Control". I am receiving a syntax error on the...
4
by: Bart.NET | last post by:
Hi, I want to prefix my attributes in a custom control. So like this: <x:Mycontrol x:id="22" x:name="SomeName" runat="server"/> Now I get a "The server tag is not well formed.". Do you know...
3
by: Steve Le Monnier | last post by:
When you make a textbox control disabled ( txtText1.Enabled = false; ) You're left with grey text on a greyer background, which is not ideal. The Read-Only property is no use to me as I need to...
0
by: Temo | last post by:
Can someone tell me what's wrong with this code? <% int width=100; %> <asp:TextBox runat="server" id="boom" width="<%=width%>"></asp:TextBox> --
2
by: Don | last post by:
Does anyone have any code for making an image look greyed out, similar to the way images on buttons are grayed out when the button is disabled? - Don
3
by: James Lennon | last post by:
Does anyone know how to disable a single check box in a Windows Forms TreeView control.
4
by: eric.goforth | last post by:
Hello, I'm getting: msxml3.dll (0x80004005) Error while parsing "file:///c:/WWWROOT/includes/Inc.xsl". A name was started with an invalid character. When I put in the "{$sDisabledString}"
1
by: Sue | last post by:
Hello Is there an equivalent of a OnTextChangedEvent for a asp: label control in asp.Net 2.0. Every time the text of a label changes, I want the items in a listbox control cleared. Tried...
1
nev
by: nev | last post by:
when i do... dgv.enabled = false dgv gets disabled as in you are unable to use the control. but it looks enabled because its appearance is still the same. Unlike a textbox which becomes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.