473,588 Members | 2,452 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabled Attribute

Hello,

Is disabled attribute available for <atag?
I am asking this because a new control in ASP.NET 3.5 is doing that.

Thanks,
Miguel
Nov 29 '07 #1
4 5222
On 29 Nov, 13:37, shapper <mdmo...@gmail. comwrote:
Is disabled attribute available for <atag?
Specification is here:
http://www.w3.org/TR/html4/struct/links.html#edef-A

and there's no "disabled" attribute. Only the user input controls
associated with <form(<input> , <selectetc.) support disabled.
I am asking this because a new control in ASP.NET 3.5 is doing that.
Then don't choose to build your projects with broken tools, like these.
Nov 29 '07 #2
shapper wrote:
Hello,

Is disabled attribute available for <atag?
No.
I am asking this because a new control in ASP.NET 3.5 is doing that.
Even earlier ASP.NET does that, I see, and it works even in Firefox. But
it isn't valid HTML and you can't count on it working everywhere: the
link may continue to be functional in some browsers.
Nov 29 '07 #3
Harlan Messinger wrote:
shapper wrote:
>Hello,

Is disabled attribute available for <atag?

No.
>I am asking this because a new control in ASP.NET 3.5 is doing that.

Even earlier ASP.NET does that, I see, and it works even in Firefox. But
it isn't valid HTML and you can't count on it working everywhere: the
link may continue to be functional in some browsers.
What does this attribute look like? Like this?

<a href="http://www.google.co.u k/" disabled="disab led">This shouldn't
work</a>.

This doesn't work (in the sense that the link works) in either IE6 or
Firefox 2, although the link does have a strange appearance in IE6.
Dec 2 '07 #4
On Dec 2, 11:21 am, Mark <u...@example.n etwrote:
Harlan Messinger wrote:
shapper wrote:
Hello,
Is disabled attribute available for <atag?
No.
I am asking this because a new control in ASP.NET 3.5 is doing that.
Even earlier ASP.NET does that, I see, and it works even in Firefox. But
it isn't valid HTML and you can't count on it working everywhere: the
link may continue to be functional in some browsers.

What does this attribute look like? Like this?

<a href="http://www.google.co.u k/" disabled="disab led">This shouldn't
work</a>.

This doesn't work (in the sense that the link works) in either IE6 or
Firefox 2, although the link does have a strange appearance in IE6.
Yes, it changes the background color of the link.
This is a mess. I already reported to Microsoft.

And I got a way around. I implemented a template in Asp.Net.

Thanks,
Miguel
Dec 2 '07 #5

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

Similar topics

2
1971
by: Matt | last post by:
what's the differences between readonly and disabled attribute?? When I do the post, it couldn't get both values <%= fname %>. any ideas?? <input type="text" name="fname" value="Joe" readOnly> <input type="text" name="fname" value="Joe" disabled>
2
5457
by: CES | last post by:
All, I'm at a loss, the code below works in IE but not in Netscape and I'm unskilled enough not to know why. Essentially this code looks thru all of the form fields and if the input box has a attribute of disabled="true", attribute would only be present if the field was disabled, then the label field's class is changed to a grayed out color. --- The first problem seems to be with the v==true statement, I've tried
5
28549
by: bart plessers | last post by:
Hello, Somewhere in my code I have <input TYPE="button" NAME="btnFirst" VALUE="<<" OnClick="GetFile('1')" DISABLED> I changed the layout of the INPUT with a stylesheet to INPUT { color: #FFFFFF;
1
2785
by: Stewart Cambridge London, UK | last post by:
I've been having some trouble with a set of <select><optgroup><option> dropdowns. I've been experimenting with the disabled attribute in the <optgroup> and <option> tags. Seems to work in NN but not IE. Yet this link shows Microsoft advertising that the disabled attribute is supported by them.
4
2422
by: Mel | last post by:
how can i change disabled background on all form elements ?
5
13572
by: acord | last post by:
Hi, Is there such thing that an item in the listbox is disabled and is appeared grey-out? How can I implement this in html/javascript? Thanks A
6
23835
by: tshad | last post by:
I am trying to disable and enable a checkbox from javascript. The problem is that if the checkbox starts out as: <input id="Override" type="checkbox" name="Override"/> I can change it back and forth with no problems. using disabled = true or disabled = false If I start out as:
3
7249
by: BrendanMcPherson | last post by:
How can I get a listbox to change a textbox on some selections. I have a listbox which only needs to be filled in on some selections. Is there a way I can have on some selections the textbox go disabled and turn grey?
0
1185
by: Swoosh | last post by:
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>
0
7929
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
7862
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8357
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5398
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2372
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1196
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.