Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I disable a list item in Web .Net
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00823626
Message ID:
00823905
Vues:
22
Terry,

HTML doesn't support this so you're pretty much out of luck for this...

You can display that first item that way and use some client side JavaScript to trap for that choice and not accept it in someway, but I think that's a bad way to go from a UI perspective too.

THe way this is usually done is that you have the first item in there and then your client or server side validation code checks for the stock value and refuses it when it's time to save the form.

+++ Rick ---

>I want to disable list items in a .Net 2003 Web based Drop Down List control. How can I do that server side? I do not want to display a blank item. I do that now and our QA says I need to display -Select and Item- instead. Additionally, they say that while -Select an Item- is the first item displayed and therefore selected, once a user selects another choice I should not allow them to return to the -Select an Item-. None of the selectable list items is permitted to be the default.
>
>ie
>-Select an Item- (disabled)
>Item 1
>Item 2
>Item 3
>Item 4
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform