Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert Hamilton 4 posts 24 karma points
    Jun 26, 2012 @ 22:55
    Robert Hamilton
    0

    asp:Login Control Button Not Executing Unless Page Is Refreshed Before Login

    Firstly hello!  I'm developing a jQuery Mobile 1.1 based instance of Umbraco v 4.7.2 and I seem to have run into a problem with the asp:Login control.  The control works great when used as a stand-alone page but when I use the control as the Login page for Public Access, it fails to log the user in and just redirects to the root of the site.  

    So I enabled debugging and dropped the PDB file into the bin so I can step through the Login control and sure enough, the login_click method is not hit at all when it is clicked.  Now the curious bit, manually refeshing the page before logging in results in the method being hit, the user is authenticated, and is redirected to the protected content.  

    Does anyone have any insight into the issue?  

     

    Thanks in advance.

     

  • Robert Hamilton 4 posts 24 karma points
    Jun 27, 2012 @ 00:34
    Robert Hamilton
    0

    Figured it out. 

    We had nested master pages and the <form> tag was on the parent masterpage which I thought would handle all controld embedded in child templates.  Removing the <form> tag from the parent and wrapping each individual embedded user control tag with it instead fixed everything. 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies