1
votes

I've got a custom webpart in Sharepoint 2007 that works when used on the same machine sharepoint is installed on. When I browse to the page from a remote machine, the webpart renders but when you click the submit button, I get redirected to /_layouts/login.aspx?ReturnUrl=

Does anyone have any idea what is happening, or what I should do?

1
What is the submit button supposed to do? Where does it redirect to when you test it on the server? Sounds like a problem with permissions. - alf
Yes, I do think it is permissions now. The webpart is adding a new contact to a list and redirecting the user to the home page. I've commented out the list update method and it works. So now I've got to figure out how to allow the anonymous user to edit the list, I guess? - Jeff
you could impersonate the user with SPSecurity.RunWithElevatedPrivileges msdn.microsoft.com/en-us/library/… - int32

1 Answers