I want to get clientcontext in a visual sandbox webpart.
How can I do it without providing any credentials for url, as webpart will be on home page. I don't want to provide any credentials either, just want it to work like, SPContext.current....
string siteURL=”http://localhost“;
ClientContext clientContext = new ClientContext(siteUrl);