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).
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.
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
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
is working on a reply...