in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Login.aspx fix

Last post 02-22-2008 7:17 AM by aewrigley. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 02-21-2008 9:09 AM

    Login.aspx fix

    Hi,

     Can anyone send me the login.aspx fix quoted in confirmed bugs and fixes?  I have pm'd Naz, but no reply.

    Filed under:
  • 02-21-2008 10:25 PM In reply to

    Re: Login.aspx fix

    Not the one from Naz but should work

    in the Web/login.aspx.cs file add the two lines that are underlined

    protected void Page_Load(object sender, EventArgs e) {
    Button btnLogin = (Button)llogin.FindControl("LoginButton");
    Page.Form.DefaultButton = btnLogin.UniqueID;

    SetLoginControlProperties();
    }
    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us!
  • 02-22-2008 4:31 AM In reply to

    Re: Login.aspx fix

    Thanks.  Will this not mean that the search button will only work when clicked, as opposed to an alternative and desirable behaviour, which would be that it fires when the user hits enter after entering search text?

    Naz's javascript could be amended to work with this button, and to check that there is text in the search textbox.

  • 02-22-2008 6:43 AM In reply to

    Re: Login.aspx fix

    yitzchok:

    Thanks, your solution works, Naz's didn't.  Dunno why, but not time to check it out.

  • 02-22-2008 6:47 AM In reply to

    Re: Login.aspx fix

    Why not use a more simpler approach of setting the DefaultButton property like I've indicated here? (if required, the div/control can be wrapped in a panel control...)
  • 02-22-2008 7:17 AM In reply to

    Re: Login.aspx fix

    ebirbal:

    That looks like a definitive fix, certainly the RAD one.

Page 1 of 1 (6 items)