Issue in using web.GetFileOrFolderObject

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.....


May 16th, 2015 7:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics