index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP Report Wizard v2 |
| |||||||
Jul 9 2004, 2:30 PM |
| ||||||
StarChip from: somewhere | Is there some more direction on how to set ADMIN? I have learned by your examples but want to read more. How to setup a page so I can edit but users only view. Thank you | ||||||
Jul 9 2004, 10:20 PM |
| ||||||
ghost from: Washington, DC | The IsAdmin property should take care of this. For example: <% Const ADMIN = 1 If CInt (Session("UserRole" ) ) = ADMIN Then objWiz.IsAdmin = True Else objWiz.IsAdmin = False 'user cannot add, delete or edit reports End If %> let me know if this helps. ------------------------- Ghost | ||||||
Aug 4 2004, 6:34 AM |
| ||||||
dsoden from: Lakeland FL | Please excuse the stupid question… Regarding security and the ADMIN, USER, GUEST accounts. How or what defines a user as one of these. I see the code click here I used this code but when I go to the page it just gives me view report (GUEST) permissions. What determines what level a user is or where do I define a user and their assigned level. This is the part that is grey to me. | ||||||
Aug 4 2004, 7:34 AM |
| ||||||
ghost from: Washington, DC | You would be the one to make that decision. When a user logs into your application/website - you can then decide from the user's logOn creadentials if their Session should be set as an ADMIN or as a GUEST. To bnetter understand this, download the Sample applications from the link below and check out how Sessions and different users can be handled. http://www.aspwebsolution.com/products/downloads/?p=aspreportwizard/Sample.zip ------------------------- Ghost | ||||||
Pages: (1) [1] |