I have a web part which shows the list of documents which are stored in the document library. I want to open the document in respective client application of client machine programmatically.
Scenario for example: There are three files displayed in the web part, among them one is word, other is excel and the third one is power point file. If user clicks on any of file it should be opened in respective client machine's application.
How to do that? Please provide any sample code or reference links.