Jul 21, 2020, 6:20 AM
[OPEN] [#1819] Migration from legacy code
Hello
I'm not comming with example to reproduce, I'm more looking for general question to be answered or direction to investigate
We have the project in legacy Ext.Net ( without .Net core) and we are thinking to migrate to Classic one.
we have relativelly lot of ascx code in user controls, that are using LoadControl in order to be loaded into the memory, and then ToCOnfig method of the ComponentLoader in order to generate js for example :
(as ascx files is much easier to write, there is full intelisences etc)
Is it possible to have some kind of simila approach in Ext.NET 7 (so somehow take cshtml file and generate javascript from it?)
or little bit more in general - how to write single page application using ext.net 7 (idea is that all the javascript files - including forms and anything that participate on rendering layout, excluding data, will be downloaded on one requests, and later on app will just dowload pure data as user walks throught the app)
Thanks
Louise
I'm not comming with example to reproduce, I'm more looking for general question to be answered or direction to investigate
We have the project in legacy Ext.Net ( without .Net core) and we are thinking to migrate to Classic one.
we have relativelly lot of ascx code in user controls, that are using LoadControl in order to be loaded into the memory, and then ToCOnfig method of the ComponentLoader in order to generate js for example :
UserControl ctrl = (UserControl)LoadControl(virtualPath);
var jsConfig = ComponentLoader.ToConfig(ctrl, false);
In other words we are "generating" JSON object config from the ascx files(as ascx files is much easier to write, there is full intelisences etc)
Is it possible to have some kind of simila approach in Ext.NET 7 (so somehow take cshtml file and generate javascript from it?)
or little bit more in general - how to write single page application using ext.net 7 (idea is that all the javascript files - including forms and anything that participate on rendering layout, excluding data, will be downloaded on one requests, and later on app will just dowload pure data as user walks throught the app)
Thanks
Louise