Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have some documents stored in a document Set.

I noticed that opening the file by clicking on it in the document set produces a different behavior than taking this exact same link and putting it on a browser.

using IE, when clicking on the document, I get this dialog box: enter image description here

but when I copy the shortcut and use it directly in the browser, i get this dialog box:

enter image description here

same thing in Firefox:

when clicking on the document, I get this dialog box: enter image description here

but when I copy the shortcut and use it directly in the browser, i get this dialog box: enter image description here

What can I do in order to always open the document in a way similar to clicking on its name in the document set?

I am using SP 2010 enterprise edition. site collection is using publishing template.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

It turned out that when clicking a link in a document library, there is an onclick event in the

> <a href onclick="return
> DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.3','0','SharePoint.OpenDocuments','','','','1','0','0','0x7fffffffffffffff','','')">

This is what causes the document to open in edit mode rather than just download it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.