Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Asp.net read only control
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01565909
Message ID:
01565955
Vues:
37
>>>>>>Hi
>>>>>>I have an asp.net page with Text Box Controls
>>>>>>
>>>>>>From within C#, I want to make some of these Readonly, and then Read-write
>>>>>>
>>>>>>So default on the form is that they are Read-only, but if user presses abutton (Go Into Edit Mode) I want to make them ReadOnly = false so
>>>>>> thay can be edited
>>>>>>
>>>>>>Tia
>>>>>>Gerard
>>>>>
>>>>>Can you handle that using Javascript on the client side ?
>>>>
>>>>Handle the Click event of the button and you can set TextBox controls to ReadOnly=true in server side code.
>>>
>>>Seems a little clunky to have to round-trip to the server to do this ?
>>
>>Depends on what he is doing. This is pretty much a black hole so far..
>
>No help from Javascript?

Not required depending on what he is doing.

If he is dealing with data and wants to be able to switch from edit to readonly modes, then use a formview and no explicit javascript is required.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform