This project has moved and is read-only. For the latest updates, please go here.

how to change the url of assignment items

Topics: Developer Forum, User Forum
Oct 6, 2009 at 8:59 AM


I enter my sharepoint site using its IP address not the "". Unfortunately, even if I enter the site using IP address, url of assignments starts with "". How can I change it to use IP address instead? By code? Putting SPContext.current.web.url will solve this problem.. But where should I put this code?

Best regards..

Oct 7, 2009 at 5:02 PM

If you change your alternate access mappings so that the URL with the IP address is the default, then it should work for you. See this post for more information:

Oct 7, 2009 at 7:47 PM

Thanks :))