Active Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 1751
Number of posts: 4473

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Challenge for those ASP Programmers Posted by amolina01 on 14 Sept 2002 at 8:53 PM
Hi!

I've created a single login page. In which usernames and passwords are stored on table in access. My question is how can you restrict users to print some pages. depending what users is logged on, that user may be able to print or not.

How can you do that using ASP?

Enjoy!!

amolina01
Report
Re: Challenge for those ASP Programmers Posted by chick80 on 15 Sept 2002 at 12:10 PM
This message was edited by chick80 at 2002-9-15 12:14:21

: Hi!
:
: I've created a single login page. In which usernames and passwords are stored on table in access. My question is how can you restrict users to print some pages. depending what users is logged on, that user may be able to print or not.
:
: How can you do that using ASP?
:
: Enjoy!!
:
: amolina01
:
... really, I don't know if you can do this, but even if you can it won't be so useful... if the user cannot print the page, he can always save the page and then print it offline, or simply hit the 'Stamp' key to grab the screen, open a paint program and paste it!!!
Anyway, if ever there is a mode to avoid the user printing the page, then you can just create a cookie in which you store the "user-type" (something that means "Can print all", "Can print only some type of pages" or "Cannot print anything"), when the user logs in.
Then you can check the cookie at print-time!

nICO



How beautiful, if sorrow had not made Sorrow more beautiful than Beauty itself.
JOHN KEATS




Report
Re: Challenge for those ASP Programmers Posted by pogowolf on 15 Sept 2002 at 6:51 PM
I do something like this on my site. when I user record is created I check a Yes/No Column, depeding on what features a user has access to.
like a user group setting. 'Normal', 'Admin', 'Edit' etc..
then when I pull the name/password set to match.. I pull the user information out, and set that to an Session Var.

Then my main system reads the access levels out of the session and displayies the data accordingly.


: Hi!
:
: I've created a single login page. In which usernames and passwords are stored on table in access. My question is how can you restrict users to print some pages. depending what users is logged on, that user may be able to print or not.
:
: How can you do that using ASP?
:
: Enjoy!!
:
: amolina01
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.