Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to change of item url in sharepoint 2010 document librar
Rahul Khanna
11y
1.9k
1
Reply
Hi,
I am working on changing the item url of
sharepoint
2010 document library programatically. Once user click on a document in the library the document should redirect to the NewItemURL, for this I have written the below code but its not giving the expected result. Could somebody please help me out on this.
string oldItemURL = item.Web.Url + "/" + item.File.Url;
string NewItemURL = "/Sites/MyTestSite/_layouts/MyCustomApplicationPage/MyCustomApplicationPage.aspx?ItemId=" + docID;
item.Url.Replace(oldItemURL, NewItemURL);
item.Update();
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Need help in custom application page and Javascript.
SharePoint Lookup column