While developing sharepoint webparts, I have realized that sometimes, accessing SPContext variables prevents the webpart from being accessed anonymously and wrapping them in a SPSecurity.RunWithElevatedPrivileges() will prevent this.
At other times, even this doesn't help.
How do I prevent this behaviour, I don't want the login to be prompted. Just pure anonymous access ?
Exactly what piece of code causes this and can it be forced to be on no login ?
Is there an easy way to find out which webpart is causing the login prompt when there are 10 or more webparts on a page ?
0 commentaires:
Enregistrer un commentaire