I want to use Umbraco .NET Custom Control in Macro. I have gone through following steps:
1) I have created new Macro with name TestProperty Adding Assembly to Macro
2) Browse and Add Pramater from Assembly Brose and Save Property in Umbraco
3) Use Macro in Template enter image description here
I did not get any problem till last step. But when i am previewing my Content then I am getting Page with Error as Below:
enter image description here
My Class code is as Below:
using CustomServiceRepository.Interfaces;
namespace CustomServiceRepository.Repositories
{
public class EmployeeRepository : IEmployeeRepository
{
private int _PvtTotal;
public int TestProperty { get{return 5;} set{_PvtTotal=value;} }
public int GetTotalCount()
{
return 5;
}
}
}
Create .Net Custom Control
I want to use Umbraco .NET Custom Control in Macro. I have gone through following steps:
1) I have created new Macro with name TestProperty Adding Assembly to Macro
2) Browse and Add Pramater from Assembly Brose and Save Property in Umbraco
3) Use Macro in Template enter image description here
I did not get any problem till last step. But when i am previewing my Content then I am getting Page with Error as Below:
enter image description here
My Class code is as Below:
How can I get my Property Value in this case?
Anything in the umbraco log file? Also try debugging using visual studio it may be you have error in the control?
No I am not getting any Specific Entry in UmbracoLog for this Exception. And also i tried by debugging in Visual studio, But no clue from it.
is working on a reply...