TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rahul Khanna
NA
236
0
How to change of item url in sharepoint 2010 document librar
Dec 22 2013 9:19 AM
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();
Reply
Answers (
1
)
Need help in custom application page and Javascript.
SharePoint Lookup column