Nardi
|
| Posted: 06/27/2002, 9:59 AM |
|
How can I write a custom code onclick on a textbox in order not to allow to add if the users is not the right one
|
|
|
 |
Chris K.
|
| Posted: 06/27/2002, 12:40 PM |
|
Do you want client-side event or server-side? With client-side (Javascript) problem is user can turn-off Javascript processing and bypass this security.
You could check user rights in BeforeShow event, fix HTML template to include template variable within <input ... > tag to add readonly attribute if required also.
Another solution could be to put both label and textbox and hide appropriate control according to user rights.
|
|
|
 |
|