Hi
The remote server returned an error:(500) in SharePoint 2013
exception throwing on this line clientContext.Execute Query();
thanks
Rajkumar.R
Hi
The remote server returned an error:(500) in SharePoint 2013
exception throwing on this line clientContext.Execute Query();
thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manesh GolekarPosted Aug 13, 2014, 7:43 AM
namespace CSOMContentTypes
Manesh GolekarPosted Aug 18, 2014, 4:52 PM
Content Type Activity Area Category
Document Economy Inquiry
Document Economy Service
etc.
2. ON your form (image : Content type) Add button upload file - and open your custom upload
in model pop up (/customupload.aspx?CT=Document) pass your content type as Query param
3. Bind first drop down on load by querying to your master list and retrieve all ActivityArea
4. Based on selection of Activity Area - again query on master list and pull respective
categories
(http://www.c-sharpcorner.com/UploadFile/0e18a8/retrieve-items-from-a-list-in-sharepoint-2013-using-csom-jav/)
5. Upload Control - Add file
( for upload code this should help :- http://readersharepoint.blogspot.com/2014/07/add-attachment-to-list-using-jquery-and.html)
6. Save Data in Doc lib with (Content Type , Activity Area , Category and Selected files )
Rajkumar RPosted Aug 18, 2014, 8:06 AM
Hi Manesh
I have to show the cascading dropdown on the upload aspx page .Based on the content type the Filtered value will show the second column. Please refer the attached file. How to do this SharePoint 2013 CSOM model
Manesh GolekarPosted Aug 15, 2014, 4:26 AM
Could you describe more in details about expected functionality ..?
Rajkumar RPosted Aug 13, 2014, 11:26 PM
Thanks Manesh its working for me
Do you have idea how to customize upload aspx page using CSOM
Rajkumar RPosted Aug 13, 2014, 7:27 AM
namespace CSOMContentTypes
{
class Program
{
static void Main(string[] args)
{
ClientContext clientContext = new ClientContext("http://cph-spsdev27-d:6000");
// Get the SharePoint web
Web web = clientContext.Web;
ContentTypeCollection ctColl = web.ContentTypes;
clientContext.Load(ctColl, coll => coll.Include(contentType => contentType.Name));
clientContext.ExecuteQuery();
foreach (ContentType ct in ctColl)
{
Console.WriteLine(ct.Name);
}
Console.ReadLine();
}
}
}
Manesh GolekarPosted Aug 13, 2014, 7:19 AM