Hi,
I have a requirement like there is a button on my webpart "Download", I am storing the document url in one list and accessing that url using
web.GetFileOrFolderObject (documenturl)
In client machine I am getting error when I clicked on this button, I checked the document in document library , it is stored as draft version and because of this my complete web part (which includes grid view also) is broken, even though I am using try catch block...how to avoid this situation.GetFile Object is also not working.
One more thing I have observed that the document library where I am accessing the document id version enabled and in Draft mode
Thanks In Advance.....
- Edited by SarepointExplorer08 Saturday, May 16, 2015 6:16 PM