Problem with Login control of ASP.NET

后端 未结 13 1085
春和景丽
春和景丽 2021-01-03 00:38

I set up a website to use SqlMembershipProvider as written on this page.

I followed every step. I have the database, I modified the Web.config to use this provider,

13条回答
  •  误落风尘
    2021-01-03 01:18

    @Rob: You are right from your point of view.

    From my point of view it is my test project to check some things. If it is working in any way, that fits to me. I haven't found any similair problem on the net, so it can be something else, absolutely not related to ASP.NET.

    However I'm open, so that next time I also can say: aha, I know this!

    I started over the project:

    Default.aspx: added LoginStatus and LoginName controls

    Login.aspx: added Login control and CreateUserWizard control

    web.config: added

    
        
    
    
        
        
    
    
        
            
            
        
    
    

    and

    
        
    
    

    Create the database with aspnet_regsql -E -S iballanb\sqlexpress -A all, created an SQL user called full with password full.

    Start the project, I got redirected to Login.aspx, create one user, it is created in database. Entering user data to login form, catching events: LoggingIn, Authenticate, LoggedIn, so I'm logged in ( I don't do anything in these events, I don't authenticate myself, I'm only interested in what is fired and in which order). RedirectURL is correctly pointing to Default.aspx, but has no effect.

    This is it so far.

提交回复
热议问题