Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 08-06-2006, 10:45 PM Multiple user levels
Novice Talker

Posts: 10
Trades: 0
Hi,

On my website I want two "levels" of users. I would like to have "admins" that can view protected pages, and can update the protected pages through a .asp page I built. But I only want the people classified as "users" to be able to view the protected pages, and not be able to access the update .asp page, because I don't want them to have the ability to update pages. I want to use an access database to store usernames and passwords. Is this possible?

Also, the update .asp page I built has multiple WYSIWYG editors embedded, and each one updates a certain page. I need the administrators to be able to update text and images. Is there any better way of going about this using ASP instead of multiple WYSIWYG editors?

Thank you
kw91 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-07-2006, 05:39 AM Re: Multiple user levels
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
if the admin logs in, save a value as a session variable. Then just include (or not) the editor depending on the user level.

something like
Code:
userlevel = session("userlevel") 
if userlevel = admin then
'    code to display editor 
end if
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-25-2006, 10:11 AM Re: Multiple user levels
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
Right!
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-25-2006, 06:40 PM Re: Multiple user levels
yoemanspiffy's Avatar
Experienced Talker

Posts: 42
Trades: 0
Agreeing with the laddies here: Why don't you use a single editor page and pass the page you want to edit as a variable to it?? Can you elaborate on your use of multiple WYSIWYGs?
__________________
My grandfather used to work for your grandfather. Of course the rates have gone up.


Please login or register to view this content. Registration is FREE
yoemanspiffy is offline
Reply With Quote
View Public Profile Visit yoemanspiffy's homepage!
 
Reply     « Reply to Multiple user levels
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40354 seconds with 12 queries