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 April 11th, 2006, 09:40 PM
Registered User
 
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JRMotz
Default Problem with Logging in

I can't seem to log in a user. When I hit the submit button it goes through fine and redirects back to the main page, but it doesn't recognize that the user is logged in.

I think it may be a problem with the cookies. I don't know if there is something I need configure on the server or not.

If anyone can help me, I would appreciate it
 
Old April 13th, 2006, 04:52 PM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try to search in this forum for "cast not valid"

the code for all pages with authentification must be:

Code:
#Region " Web Form Designer Generated Code "


...

Private designerPlaceholderDeclaration As System.Object

        Protected Overrides Sub OnInit(ByVal e As EventArgs)
            MyBase.OnInit(e)
            InitializeComponent()
        End Sub

        ' This call is required by the Web Form Designer.
        <System.Diagnostics.DebuggerStepThrough()> _
        Private Sub InitializeComponent()
            AddHandler Me.Load, AddressOf Page_Load
        End Sub

#End Region

        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) ' Don't write here' Handles MyBase.Load


sometimes, when you debug your project, this pages change automatically.
a poor way to solve that is to search the wrong pages, change it, then close all the pages in the visualstudio, and then debug your project... otherwise, if you still have any page open, the program can change that page and write "Handles MyBase.Load"

if anyone know a better way, please reply!

Max
 
Old April 13th, 2006, 08:29 PM
Registered User
 
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JRMotz
Default

im still confused. I can't get it to work. I think it's just not reading the cookie or something, because if I go into my temp folder I can see that the cookie was made... but it won't read it.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging problem with IBM Websphere 6.1 NEO1976 Pro Java 0 April 20th, 2007 09:01 AM
problem with ms sql-server abd logging hertendreef ASP.NET 2.0 Basics 12 May 1st, 2006 03:15 PM
SSIS - Built-In Logging / Custom Logging ivobecker23 SQL Server 2005 0 April 21st, 2006 05:41 AM
Logging in from another place Hadware General .NET 0 December 14th, 2004 03:39 PM
Logging into other sites JonnyRPI Classic ASP Basics 4 June 7th, 2003 04:02 PM





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