Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving values in a disabled checkbox
Message
De
04/09/2013 11:45:05
 
 
À
04/09/2013 11:40:31
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01582105
Message ID:
01582118
Vues:
20
>>I have a formview inside a formview. FV2 is on the ItemTemplate of FV1. FV2 contains 6 checkboxes. Based on user roles, users are allowed to edit various combinations of the 6 checkboxes. For example user1 may edit Ck1 and Ck2 but not the others. User2 may edit only Ck5, etc. The ckeckboxes are enabled or disabled based on the user's roles. My problem is that if a checkbox is not enabled, the value of 0 is stored anyway. Thus the user wipes whatever data was stored for the checkboxes he was not allowed to edit. Is there a setting somewhere that will preserve a previous true even if the checkbox is disabled?
>>
>>I had thought I could reenable the checkboxes before the save but since FV2 is inside of FV1 its methods are not readily available.
>>
>>Thanks
>
>Try creating a hidden field for any disabled checkbox with the original value.

I would still need to intercept the update command of FV2 and write the update code myself. Do you know how I could do that since FV2.Updating is not available in the selection DDLs?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform