Hi, I'm having a 4.7.0 site with a few pages behind role membership control - that seems to work as it should.
But on one of these pages I have a usercontrol with a few controls on it. Some of these controls cause autopostback and that work as expected, but when I click a button on the page causing a postback I'm send to the login page instead of the current page.
I don't know where to look - the same usercontol works fine on my local computer.
I have tried to remove the role security on the pages and put it back on (only on the top level) but that didn't help.
Do you get this behaviour for all buttons that cause a postback, or just on one particular? It this is just for one button, can you maybe give some indication of what it is doing?
Login/postback problem with usercontrol
Hi,
I'm having a 4.7.0 site with a few pages behind role membership control - that seems to work as it should.
But on one of these pages I have a usercontrol with a few controls on it. Some of these controls cause autopostback and that work as expected, but when I click a button on the page causing a postback I'm send to the login page instead of the current page.
I don't know where to look - the same usercontol works fine on my local computer.
I have tried to remove the role security on the pages and put it back on (only on the top level) but that didn't help.
Any suggestions?
Its sounds a lite like this may be caused by multiple from-tags on the page? Or could this be related to your earlier posts about logout/cache-problems? http://our.umbraco.org/forum/developers/api-questions/24742-MemberGetCurrentMember()Id-getting-the-wrong-member
Nope - there are only one form-tag on the page, but you might be right about the login case.
I will try upgrade the site and see if it solve this problem.
I have now upgraded to 4.7.1 but that didn't solve the problem :(
Hi Thor,
Do you get this behaviour for all buttons that cause a postback, or just on one particular? It this is just for one button, can you maybe give some indication of what it is doing?
Cheers,
Michael.
I think I the problem is the file management I do on postback - I'm investigating that now
is working on a reply...