x First time here? Check out the FAQ
  • Avatar4255posts4651karma
    admin

    Anyone been using css friendly adapters for login controls?

    Dirk De Grave started this topic More than a year ago , this topic was edited at: Tuesday, July 28, 2009 2:51 PM

    Hi guys,

     

    Here's another newbie question!

    Has anyone succesfully implemented css adapters (http://www.asp.net/CssAdapters/) for login controls in umbraco. Here's what I've found so far:

    - Build user control that wraps the asp.net login control and use that user control in a macro on a template -> doesn't work

    - Build user control wrapping asp.net login control, dropping that onto a aspx page (not in umbraco), run from vs.net asp.net web app -> works fine

    - Drop a server asp.net login control onto an umbraco template and run umbraco page -> works fine

     

    So, what exactly is not working? Well, as soon as I hit the login button, I get a validation error (even though I'm confident having used correct username/password combo), validation error message is the default  *' char and textboxes are cleared?

     

    Anyone any idea what might be causing this behaviour. Css adapter configuration is done correctly, as the html output spitted out when using the asp.net server login control dropped onto a template in umbraco works just fine.

     

    Cheers,

    /Dirk

     


  • Replies

  • Avatar408posts591karma
    Comment with ID: 10537
    Paul Blair posted this reply More than a year ago

    Hey Dirk

    I'm not sure if this is your problem but I recall there were a couple of gotchas with the membership controls. they didn't seem to behave nicely if you are usign directory URL's and you can also experience problems if your login control is on the home page (i.e. root URL). Does this fit your problem?

    The solution to the 1st issue is you need to add one additional setting to the web.config.
    under <system.webserver> all umbaco's httpmodules are listed. Due to the way IIS process extensionless urls, you need to add: runAllManagedModulesForAllRequests="True" to the modules element, so it looks like this: <modules runAllManagedModulesForAllRequests="True">

    (Applies to IIS7 and named pipes)

    I'm not sure if this solves the 2nd issue. If not I recall seeing it discussed somewhere - perhaps on this forum or on a MS forum.

    If you're still having no luck let me know and I will see if I can find the link.

    Cheers

    Paul


  • Avatar4255posts4651karma
    admin Comment with ID: 10599
    Dirk De Grave posted this reply More than a year ago

    HI Paul,

     

    Many thanks for the feedback!

    I don't have extensionless url's enabled yet, so that shouldn't be the problem. Login page is not at the home page, but will be eventually, meaning it might be an issue later on as you say; would be great if you could find that link.

    Have to do some extra checking, will report progress later on...

     

    Cheers,

    /Dirk


  • Avatar408posts591karma
    Comment with ID: 10727
    Paul Blair posted this reply More than a year ago

    This was the post i was talking about:

    forum.umbraco.org/...using-membership-package.aspx

    Again, the issue seems to be directed at directory URL's so unlikely to be the solution to your problem.


  • Avatar4255posts4651karma
    admin Comment with ID: 10868
    Dirk De Grave posted this reply More than a year ago

    Ok, some extra feedback after some tweeting with @sebastiaan, @JanSkovgaard and @rsoeteman

     

    Css adapters will help removing all table/tr/td tags, even the ones that are surrounding the login control when rendered (Layout templates only remove the inner table/tr/td tags)

    If using the server asp.net login control directly onto the template (and no code required) -> no problem, works as expected.

    Dropping an asp.net server control onto a user control which is then hosted in umbraco (again, no code written) -> no problem either.

    But, once you'd like to use events such as LoggedIn (which is the one I've been experiencing the problem with) and I've compiled that code behind for that user control into an assembly -> Boom, as said before... validation error (tracing shows a 'Login name: does not exist' - which is the standard .net error message). Setting breakpoints on the even handlers show that the Error event is fired, but no LoggedIn event :(

     

    Last thing to try out is to not compile into assembly but put usercontrol and code behind in usercontrols directory of umbraco installation

     

    Follow up later on.

     

    Cheers,

    /Dirk

     

     

     


  • Avatar4255posts4651karma
    admin Comment with ID: 10869
    Dirk De Grave posted this reply More than a year ago

    Oh btw, I could get it to work, but only when I'm registering for the LoggedIn event using

    <script runat="server">...</script>

    directly from template

     

    Cheers,

    /Dirk

     


  • Avatar2712posts5570karma
    admin Comment with ID: 10870
    Sebastiaan Janssen posted this reply More than a year ago

    Dirk, I would love it if you could explain how you got it to work thus far. What did you put in the web.config and did you get pre-compiled DLL's or did you compile them yourself?


  • Avatar3782posts5777karma
    admin Comment with ID: 10871
    Jan Skovgaard posted this reply More than a year ago

    Yes it would indeed be nice to see some wiki-documentation on this, once you are done. :-)

    /Jan


  • Avatar4255posts4651karma
    admin Comment with ID: 10872
    Dirk De Grave posted this reply More than a year ago

    I'd rather like to find out why it's currently not working as opposed to wikiblog about my current workaround. I think it's time for some good old debugging sessions :) Keep you posted!

     

    Cheers,

    /Dirk

     

     

     


  • Avatar3782posts5777karma
    admin Comment with ID: 10944
    Jan Skovgaard posted this reply More than a year ago

    Dirk: It was also what I meant - When you got it working ;-)


Please login or Sign up To post replies