Re: How can the Login control stop authenticating?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Not even using the template but bringing it right down to the basics noting the Login.aspx control is loaded into a Panel and the Panel is in the MasterPage

// will login but I do not know if it is using validation to catch unknown credentials
<asp:Login ID="MemberLogin" runat="server" />


I do not know how to code this anymore because any event handler will cause the control to no longer authenticate and login a known user


<asp:Login ID="MemberLogin" runat="server"
OnAuthenticate="OnAuthenticate" />



"Gregory A. Beamer" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx> wrote in message news:Xns9C4159F606432gbworld@xxxxxxxxxxxxxxxx
"HillBilly" <nobody@xxxxxxxxxxx> wrote in
news:e4oHcNr$JHA.4984@xxxxxxxxxxxxxxxxxxxx:

This control can be dragged and dropped from the VS2008 Toolbox and if
Membership is setup correctly the Login control will login
authenticated users --and-- display a message and stop the form from
processing when unknown credentials are submitted, i.e. validation.

Any attempt to use any code in any of the supported event handlers for
this control causes the Login control to stop authenticating known
users. There's other stuff going on but I didn't think or didn't know
I would have to write all of the authentication code to authenticate a
user trying to login simply because I was also using some other event
handler for the Login control.

You don't have to rewrite everything if you are using the standard
authentication method. If you are using custom tables, a database other
than Access or SQL Server or completely changing authentication, then
you do have to write a custom provider, but not for changing validation.

You want to use the validating method and set e.Cancel = true when the
user fails your scheme. That will not alter the normal operation for
anyone you allow to pass through the gate.

If I have missed the nail, post a follow up.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************

.



Relevant Pages

  • RE: Macro to VBA
    ... Database Administrator ... Dim Ret as Long 'Return Value ... Static iLogAttempts as Integer 'Number of Login Attempts ... 'Save the logged user to somwhere, in this case to a control on form Home ...
    (microsoft.public.access.modulesdaovba)
  • Re: How can the Login control stop authenticating?
    ... noting the Login.aspx control is loaded into a Panel and the Panel is ... // will login but I do not know if it is using validation to catch ... That is used for custom authentication only. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: WebBrowser
    ... security authentication won't matter at all because I don't control the ... server & have no idea what type of security they are using.... ... employees to log into sites (that i have no idea what type of authentication ... In the case of a login page you can easily interact directly with the ...
    (microsoft.public.vb.controls)
  • Re: Forms Authentication without Login Page
    ... OK thanks Brad. ... pressing a login button. ... invokes methods on the control to do the login. ... > Request.IsAuthenticated will be true for the entire request context. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Forms autentication and registration page - some advices
    ... I implement forms authentication in my application. ... So I have a login form. ... Actually I have two custom Web controls, one to login and one to redirect ... control), my page performs client side validation for username and password ...
    (microsoft.public.dotnet.framework.aspnet)