Click here to Skip to main content
15,906,816 members

Comments by narengowtham (Top 21 by date)

narengowtham 20-Feb-17 1:10am View    
Hi,
I made the logic's through this condition
if(item.File.CheckOutType!=SPFile.SPCheckOutType.None)
This condition will trigger when files are already checked out.
also with another if condition.
if(item.File.CheckOutType=SPFile.SPCheckOutType.None)
This code will trigger when file to check out new file.
narengowtham 18-Feb-17 1:45am View    
On run time,The file was check out by different users,they have to get message" File check out is already exsists" on same visual web part page.The same user checking out the new file,he/she should not message that "File check out is already exsists".
narengowtham 18-Feb-17 1:34am View    
Sorry mate, i am unable to explain sweet and short.
narengowtham 18-Feb-17 1:32am View    
Hi,
By clicking on check box on grid view I can check in and check out the files in document library.
Requirement:
While checking out the file which was already exists in document library i should get message "The file which is already check-out".

Issue is:
(item.File.CheckOutType== SPFile.SPCheckOutType.Online)

{
Label2.Text = "already exists";

}
This code enable when files were already check out in library .while I am trying to check out the new file I was getting the message that "check out file already exists".
I should not get the message while checking out new file.
narengowtham 15-Feb-17 9:18am View    
Thanks for your instant reply mate.