Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 24th, 2004, 05:10 PM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default permission issue

Hello all,

I am having problem with this and need help.

I get this error message:
You did not have sufficient permission to view the previous page. Please login below

I checked the database and have permission number in the field but
it will take me to login page.


      If Not (TypeOf Context.User Is SitePrincipal) _
        OrElse Not CType(Context.User, SitePrincipal).HasPermission( _
          CInt(MailingListsPermissions.AdministerData)) Then

 Response.Redirect( loginpage.aspx)



Thank you for your help.



 
Old May 24th, 2004, 07:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

Write out the Context.User.Name property, and verify that it does have permissions to the page.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Ruman29 Access 2 July 1st, 2006 07:09 AM
(0x800A0046) Permission denied,not IIS permission! David Hay Classic ASP Basics 3 April 30th, 2006 10:47 PM
You don't have permission lenbush329 Access 3 October 17th, 2005 09:48 AM
Permission Denied hamidmq Javascript How-To 2 March 10th, 2005 09:41 AM
FSO not working (permission issue?) aware Classic ASP Professional 1 February 16th, 2004 07:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.