Yasovardhan

Wednesday, November 04, 2009

Programatically checking if the file exists in the specified location in Sharepoint

SPSite Site = new SPSite(SITE_URL);
SPWeb Web = Site.OpenWeb();
Bool isFileExists;
if(Web.GetFile(FilePath).Exists)
isFileExists = true;
else
isFileExists = false;
Posted by Yasu at 7:11 AM
Labels: Dot Net

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2016 (4)
    • ►  December (3)
    • ►  March (1)
  • ►  2015 (6)
    • ►  July (2)
    • ►  April (1)
    • ►  March (3)
  • ►  2013 (1)
    • ►  February (1)
  • ►  2011 (1)
    • ►  February (1)
  • ►  2010 (11)
    • ►  May (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (7)
  • ▼  2009 (10)
    • ▼  November (7)
      • Programatically checking if the file exists in the...
      • Method for converting a number to base in C#.net
      • Regular Expression for Validating Email
      • How to Clone List in C#.net
      • How to read and update LookUp Field in Sharepoint
      • Programatically Sending Mails only to Outlook user...
      • How to dislay Hand Icon for Buttons on mouse over ...
    • ►  June (3)
  • ►  2008 (21)
    • ►  December (1)
    • ►  November (4)
    • ►  October (3)
    • ►  September (1)
    • ►  July (2)
    • ►  June (10)
  • ►  2007 (1)
    • ►  January (1)
  • ►  2006 (3)
    • ►  June (3)

About Me

Yasu
View my complete profile

Contact Form

Name

Email *

Message *

Watermark theme. Powered by Blogger.