Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

how to get current web in clientcontex managed csom in sharepoint2013

$
0
0

hi,

i have one site collection which is having multiple webs .

like http://servername:port/Depart

when i doing crud operation at one sub site .modifications are taking plaace to root level web but not in current web site where i am doing, how to get the current web.

here is sample code which i have eimplemented in business layer

using (ClientContext clientContext = new ClientContext(sharepointSiteUrl))
                {
                    ValidateAuthentication(authenticationDetails, clientContext);                      
                    List list = clientContext.Web.Lists.GetByTitle(listName);              

    }


Srinivas


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>