Click to See Complete Forum and Search --> : Form visibilty


erummirza
10-16-2007, 11:36 PM
In application there are certain users like manager level,employee level etc etc
and say there are few forms like add,update,delete and all users have certain privilages like manager have rights on all form and employee can have right on view form only ..
now this is stored on database level like manager have access on all forms
Employee ID formsAccessbility
1 1
1 2
1 3
2 1
say employee id 1 belongs to manager so he can access all froms 1,2,3 and employee having id 2 can access only form 1
so my question is that how to implemnt this in application(in asp.net)

i mean manager can view all form and employee id having 2 can view only 1 form or u can say all option except for viewing form 1 can disable when employee id 2 login in the system

cridley
10-18-2007, 09:17 AM
Depends on your code, you might want to show us some.

For example if you have a session variable Session["formsAccessbility
"], then you will display forms depending on that variable.

You can do that in just the aspx file with something like :


<div id="Form1" style='visibility:<%=Session["formsAccessbility"].ToString()=="1"?"visible":"hidden" %>'>
content
</div>


Or something like that. Again it depends on what your code looks like!