Copied to clipboard

Flag this post as spam?

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


  • Ken Thai 10 posts 30 karma points
    Jun 08, 2011 @ 01:47
    Ken Thai
    0

    C# LoginView control lost its authenticate state upon post back

    Hi,

    I'm facing an interesting problem and don't know why is that the case.

    I have a C# user control with a LoginView. Everything work fine untill I added a property on the macro. As soon as a postback occur, the LoginView revert to the Anonymous state.

    If I remove then property on the macro, the page back to normal (LoginView control is still authenticate).

    Had anyone came accross this issue before?

    Thanks

  • Ken Thai 10 posts 30 karma points
    Jun 08, 2011 @ 07:38
    Ken Thai
    0

    Hi,

    I found out the reason (i think).

    Problem lie in the fact that the macro properties from umbraco got executed too early. The control had not been loaded yet, hence, any call to FindControl break the page flow.

    Thanks

     

Please Sign in or register to post replies

Write your reply to:

Draft