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 February 20th, 2005, 05:10 PM
Registered User
 
Join Date: Jul 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login.aspx works in netscape, but not IE


Ok, this is a wierd one. I setup ThePhile Solution and DB without any problems. But the "Login" button on my Login.aspx page does nothing when clicked in IE 6.0, but logs in using Netscape 7.1.

My code is straight from ThePhile zip download:

Login.aspx.cs

    #region Web Form Designer generated code
        override protected void OnInit(EventArgs e)
        {
            //
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.
            //
            base.OnInit(e);
            InitializeComponent();

        }

        /// <summary>
        /// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
    { this.Submit.Click += new System.EventHandler(this.Submit_Click);
    this.Load += new System.EventHandler(this.Page_Load);

        }
        #endregion

private void Submit_Click(object sender, System.EventArgs e)
        {
            PhilePrincipal newUser = PhilePrincipal.ValidateLogin( EmailAddress.Text, Password.Text );
            if (newUser == null)
            {
LoginResult.Text = "Login failed for " + EmailAddress.Text;
LoginResult.Visible = true;
            }
            else
            {
                Context.User = newUser;
                FormsAuthentication.SetAuthCookie( EmailAddress.Text, true );
                Response.Redirect("/ThePhile/default.aspx");
            }
        }
I have set my IE security settings LOW and don't have any problems with Redirects in other sites. Any ideas?

Thank you,
Shawn



Shawn Cohan
[email protected]
 
Old February 21st, 2005, 12:21 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just some ideas: make sure you don't have a popup blocker active on IE (third party), and make sure you don't have a firewall issue blocking IE.

It normally works fine for both IE and Mozilla style browsers.

Eric
 
Old February 21st, 2005, 01:21 AM
Registered User
 
Join Date: Jul 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Eric, Thanks for the ideas.

I have tried the login.aspx on three PC's on my network, within IE 6, it does not work on any of them. When I clicked the button, the first time, IE prompts me to save passwords, I select not to. So, the browser at least recogizes a "click" event is occurring. But nothing happens after that.

If I leave the "Email Address" Box blank, the RequiredFieldValidator does provide the message "You must supply a valid E-Mail ...".

If I enter incorrect login information, such as an incorrect password,
I do not get the feedback which the Login.aspx.cs code is written to provide.

Something in IE is choking.

I have No pop-up blockers, no firewall software, all machines on same router.

If anyone has any ideas, please let me know.

Thank you,
Shawn

Shawn Cohan
[email protected]
 
Old February 23rd, 2005, 09:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you run other asp.net apps on that server? Have you tried a simple forms auth demo on that server?

My guess is that project wasn't correctly migrated from VS 2002 (assuming you didn't have it working before). This is not as easy as many people expect, and new developers using ASP.NET for the first time would probably not be successful.

I've wanted Wrox to publish source code in the VS 2003 format, along with detailed setup instructions, but this is not likely to happen. I understand they have scheduled an update to the book for VS 2005, so that would give them a fresh chance to revisit the application.

If I were you I'd probably go back to the the original source, and be careful when you upgrade it. I'd delete the .dll and .pdb files (which breaks your references), and then work through a new build and set new references as new .dll's are built. If you do it right, it takes a couple hours.

And make sure your DB is created by loading the backup file, and not using the SQL script. The SQL script was never updated, but the backup file was.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Javscript works well in aspx page but fails... vivek_inos ASP.NET 1.0 and 1.1 Professional 2 June 18th, 2006 11:26 PM
SCRIPT WORKS WITH IE BUT NOT NETSCAPE!!! elisabeth Javascript How-To 5 October 6th, 2004 03:25 AM
New.aspx works but login.aspx fails Validation nigelhamilton BOOK: ASP.NET Website Programming Problem-Design-Solution 8 September 13th, 2004 02:29 AM
New.aspx works but not Login.aspx ? reidcor BOOK: ASP.NET Website Programming Problem-Design-Solution 2 May 24th, 2004 10:32 AM
code works in IE but not netscape Toka1 Javascript How-To 2 November 27th, 2003 05:35 AM





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