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 October 31st, 2003, 09:02 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default News.aspx problem

When I first started using the ThePhileVB site I could access the categories.aspx, settings.aspx and news.aspx pages under the newsmanager/admin section. Now all of a sudden I can access the categories and settings pages but not news.aspx. I never changed any roles or permissions for the admin login. I compared the current news.aspx and the one from the download. The following are the only differences I could find: (Differences are in bold)

[u]Current News.aspx file</u>

<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()

End Sub

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

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

Response.Redirect("/ThePhileVB/WebModules/Accounts/Login.aspx?ShowError=true", True)

[u]Downloaded News.aspx file</u>
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
    AddHandler Me.Load, AddressOf Page_Load
End Sub


Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

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

Response.Redirect("/ThePhileVB/WebModules/Accounts/Login.aspx?ShowError=true", True)

I changed the current page to match the downloaded one. Rebuilt the solution and restarted the site. It still will not let me in.

I even checked all the Accounts tables in the DB to make sure something wasn't changed by accident. All the tables match the downloaded version.

Has anyone run into the same problem? What am I missing? I can’t find any other differences.

Please Help!

 
Old December 15th, 2003, 10:58 PM
Authorized User
 
Join Date: Jun 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you show us the error you get?

Kim Gjerstad





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Register.aspx Big2 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 August 14th, 2008 08:44 AM
Separating news from the articles and add news pic Isaak BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 December 12th, 2006 11:25 AM
Module News Problem thanhh83 BOOK: ASP.NET Website Programming Problem-Design-Solution 9 May 16th, 2006 09:41 PM
datacontrol.aspx example problem wendyhod ASP.NET 1.0 and 1.1 Basics 0 May 4th, 2005 09:48 AM
problem with News Ticker Application benito BOOK: ASP.NET Website Programming Problem-Design-Solution 2 September 1st, 2004 03:22 AM





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