How to get filter dynamic module by UrlName property
Hi team,
I am working in sitefinity 8.1.
I have creted a dynamic module and i want to get items based on the "UrlName " property.The code that i have tried is given below.
var dynamicCasestudyItems =
dynamicModuleManager.GetDataItems(mycaseStudyType).Where(p =>
p.Status.Equals(ContentLifecycleStatus.Live) &&
p.Visible.Equals(true) &&
p.UrlName.Equals(mycaseStudyUrl)).FirstOrDefault();
But i am getting the following error.Any idea on this?
Unknown parameter.
Parameter name: parameterExpression
Actual value was p.
Please let me know what i am wrong with my code.
Thanks
Hi,
Would it be possible for you to check whether mycaseStudyUrl is a string value?
Regards,
Stefani Tacheva
Telerik