Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys
I would like retrieve a list of pages by their document type using umbraco api to create a user control, do you know where I can find a good code example for me to get start with this ?
Thanks & Regards,
Are you using Umbraco 4.5.2?? If so highly recommend using Linq 2 Umbraco to acheive this.
MyDataContext ctx = new MyDataContext(); var pages = ctx.MyDocumentType; foreach (var item in pages){ //do stuff here}
MyDataContext ctx =
new MyDataContext();
var pages = ctx.MyDocumentType;
foreach (var item in pages)
{
//do stuff here
}
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Retrieve a list of pages by document type using api
Hi guys
I would like retrieve a list of pages by their document type using umbraco api to create a user control, do you know where I can find a good code example for me to get start with this ?
Thanks & Regards,
Are you using Umbraco 4.5.2?? If so highly recommend using Linq 2 Umbraco to acheive this.
is working on a reply...