|
|
#1 |
|
New Member
Join Date: Jun 07
Posts: 3
![]() |
[2005] Stupid Login Question [Resolved]
I'm sure this question is either so obvious it doesn't deserve asking, or has already been asked before, but I couldn't find it from searching, sorry.
I am planning to make an application with 3 user types; basic user, super user and admin. From the login page (the first form to be displayed) the user will be presented with 2 text boxes for username and password. Depending on the usertype attached to the username will define which type of user they are. Each user will be presented with a different version of the same page upon login, each having the same basic view (a tree view on the left, and a list view on the right) but with different options available depending on the user type. My question is, other than using something like the factory method (which I only have a basic understanding of) is there any simple way to use the same form, but have it present the different views depending on user type, or would it be best to have 3 different forms, and for the application to point to a different form depending on user type? Thanks for any help Last edited by asekga; Jun 18th, 2007 at 11:19 PM. |
|
|
|
|
|
#2 |
|
in the borderlands
Join Date: Feb 01
Location: in evansville, IN, recently highlighted in an at&t commercial
Posts: 6,467
![]() ![]() ![]() ![]() ![]() ![]() |
Re: [2005] Stupid Login Question
You could have one form and simply disable buttons or hide them if you aren't administrator. It is easy to hide and show whole blocks of controls at once if you put them in a frame.
__________________
"America" is a land-mass, not a country! I live in the United States. I'm a Yankee. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Jun 07
Posts: 3
![]() |
Re: [2005] Stupid Login Question
Thanks for the idea, but its the content of the tree view I want changed.
For the basic user there will only be one item listed in the tree view, and when selected a set of items shown in the list view. For the super user there will be two items in the tree view, the basic user tree, and the super user tree with two drop downs (each with different items listed on in the list view) and for the administrator the super user tree options and another main tree with two sub trees. |
|
|
|
|
|
#4 |
|
in the borderlands
Join Date: Feb 01
Location: in evansville, IN, recently highlighted in an at&t commercial
Posts: 6,467
![]() ![]() ![]() ![]() ![]() ![]() |
Re: [2005] Stupid Login Question
simple enough to load the treeview with all three trees to start with and delete the two unneeded trees. (although this is backwards in how you should do it)
__________________
"America" is a land-mass, not a country! I live in the United States. I'm a Yankee. |
|
|
|
|
|
#5 |
|
New Member
Join Date: Jun 07
Posts: 3
![]() |
Re: [2005] Stupid Login Question
And its just that sort of backwards logic I was looking for :P
Thanks for your help. |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|