franklt69
22 Mar 2007, 2:26 PM
Hi I have some doubts about how to implement security (access level) in an applicacion using (ext, javascript).
This is the situation: I have 3 link (admin, staff, guess) in a right menu, using the .net approach based in component, in the server I can set if the user logged don't have access to admin link something like it
linkAdmin.Visible = false; then the asp.net framework send the html to client and in the html don't appear the link linkAdmin to me is good becouse a hacker don't know if this link exist.
Now with javascript approach, I have to hide it in the client but maybe a developer watch the js and can enable this link (I know I have to protect the app in client and server) but my doubts is which is the better approach to show/hide part of an application using ext (javacript) ?
kind regards
Frank
This is the situation: I have 3 link (admin, staff, guess) in a right menu, using the .net approach based in component, in the server I can set if the user logged don't have access to admin link something like it
linkAdmin.Visible = false; then the asp.net framework send the html to client and in the html don't appear the link linkAdmin to me is good becouse a hacker don't know if this link exist.
Now with javascript approach, I have to hide it in the client but maybe a developer watch the js and can enable this link (I know I have to protect the app in client and server) but my doubts is which is the better approach to show/hide part of an application using ext (javacript) ?
kind regards
Frank