Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. SharePoint
  4. How to know whether a SharePoint folder or file exists using url.

How to know whether a SharePoint folder or file exists using url.

Scheduled Pinned Locked Moved SharePoint
tutorialsharepoint
3 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bin_bin1
    wrote on last edited by
    #1

    Hello, I want to know how I can check whether a SharePoint list or file exists using url. It is for a windows form client application, therefore I cannot use SharePoint object model. I think I need to use SharePoint web service. However I don't know which web methord that I need to use. The following are example of the urls. http://sharepoint_site/list1/ http://SharePoint_site/List1/abc.txt. Thank you very much Best Regards, Bin

    A 1 Reply Last reply
    0
    • B bin_bin1

      Hello, I want to know how I can check whether a SharePoint list or file exists using url. It is for a windows form client application, therefore I cannot use SharePoint object model. I think I need to use SharePoint web service. However I don't know which web methord that I need to use. The following are example of the urls. http://sharepoint_site/list1/ http://SharePoint_site/List1/abc.txt. Thank you very much Best Regards, Bin

      A Offline
      A Offline
      Ali BaderEddin
      wrote on last edited by
      #2

      Are you using SharePoint 2007 or SharePoint 2010? If the latter, then you can take advantage of the Client OM (Google or Bing it). Otherwise, you'll need to use the SharePoint List Web Service. If using Visual Studio 2005, follow example here: http://msdn.microsoft.com/en-us/library/lists.lists.getlist(v=office.12).aspx[^]. If using Visual Studio 2008 (WCF), follow instructions here: http://blogs.msdn.com/b/kaevans/archive/2009/03/10/calling-sharepoint-lists-web-service-using-wcf.aspx[^] Hope that helps...

      -- Ali B http://mycodelog.com

      B 1 Reply Last reply
      0
      • A Ali BaderEddin

        Are you using SharePoint 2007 or SharePoint 2010? If the latter, then you can take advantage of the Client OM (Google or Bing it). Otherwise, you'll need to use the SharePoint List Web Service. If using Visual Studio 2005, follow example here: http://msdn.microsoft.com/en-us/library/lists.lists.getlist(v=office.12).aspx[^]. If using Visual Studio 2008 (WCF), follow instructions here: http://blogs.msdn.com/b/kaevans/archive/2009/03/10/calling-sharepoint-lists-web-service-using-wcf.aspx[^] Hope that helps...

        -- Ali B http://mycodelog.com

        B Offline
        B Offline
        bin_bin1
        wrote on last edited by
        #3

        I am using SharePoint 2007. Thank you so much. Bin

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups