May 02, 2016, 11:42 AM
Type of "Content" variable in DesktopConfig in .NET code behind.
I am trying to achieve what is posted here :
MVC EXT.NET Desktop Overview
using code behind in my controler.
I stopped on DesktopConfig creation.
Original code looks as follows :
Object Content's type is "System.Web.UI.ITemplate" and I can't find any accaptable object to put there.
Should I create my own class implementing ITemplate or is there any one which does it already in ext.net?
MVC EXT.NET Desktop Overview
using code behind in my controler.
I stopped on DesktopConfig creation.
Original code looks as follows :
DesktopConfig( Html.X().DesktopConfig()
//something
.Content(
@<text>
@(
Html.X().Image() //something
)
)
</text>
)
)
What I am trying to achieve should like like this : new DesktopConfig
{
//something
Content = new Content{
new Image()
}
};
But there is a problem :Object Content's type is "System.Web.UI.ITemplate" and I can't find any accaptable object to put there.
Should I create my own class implementing ITemplate or is there any one which does it already in ext.net?