![]() |
Sergey Kornilov admin 2/15/2008 |
Dale, if Session("UserID")<>"admin" then Response.Write "<script>document.editform.value_FieldName.disabled=true;</script>" end if |
D
|
dlangham author 2/16/2008 |
Dale, you can use insert ASP code snippet function to insert your code at the end of page. In this function you apply your business logic and make certain fields disabled using Javascript. Example:
|
J
|
Jane 2/19/2008 |
Dale, |
S
|
soberholtzer 2/19/2009 |
Jane, |
J
|
Jane 2/20/2009 |
Hi, if Session("UserID")<>"chollywood" then xt.assign "Rate_fieldblock",False end if |
S
|
soberholtzer 2/20/2009 |
Jane, Thank you! Works great. |
![]() |
Sergey Kornilov admin 2/20/2009 |
Try this: if Session("UserID")<>"chollywood" and Session("UserID")<>"Tyarber" then |
S
|
soberholtzer 2/20/2009 |
That did not work. It kept the field hidden for the second user Tyarber. It still showed the field as displayed and editable for the first UserID "chollywood". |
L
|
luic 2/20/2009 |
I have similar requirement but slightly different. |