This project has moved. For the latest updates, please go here.

how to change the url of assignment items

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

Hi,

I enter my sharepoint site using its IP address not the "http://computer.name.....". Unfortunately, even if I enter the site using IP address, url of assignments starts with "http://computer.name". 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 4: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:

http://slk.codeplex.com/Thread/View.aspx?ThreadId=9590

Oct 7, 2009 at 6:47 PM

Thanks :))