CodeBehind Version 1.8 was released on November 26, 2023. Version 1.8 is the biggest update of CodeBehind and many features have been added to it.
CodeBehind version 1.8 supports Razor syntax. You can either develop your programs based on the Razor syntax or use the standard syntax.
Razor syntax in CodeBehind is very similar to Razor syntax in cshtml pages in .NET Core, but in some cases there may be slight differences. Also note that if there is an error in aspx pages that are created with Razor syntax, it is different from Razor syntax errors in .NET Core cshtml pages. The Elanat team doesn't know the Microsoft approach, and the support for Razor pages in CodeBehind was created from the ground up by the Elanat team.
The Elanat team has introduced a wonderful Template structure with version 1.8. Templates form parts of an aspx page. In a revolutionary initiative, the Elanat team provides a return templating structure that guarantees 100% separation of server-side code from the design part (like html).
One of the new initiatives of the Elanat team in the CodeBehind framework is to add support for the CodeBehind constructor method for models and controllers. You can open parentheses in front of the model and controller class names and add the desired input arguments that you created in the CodeBehind constructor method.
From now on, there is an options file in the code_behind/options.ini path. This file will contain many options for customization.
Added HtmlData classes
From now on you can use classes located in the HtmlData namespace.
The Elanat team currently supports three commonly used and recurring data types and will add more data types to the HtmlData namespace in the future.
Namespace and dll for CodeBehind view class
From now on, you can add namespaces to the view class aggregating aspx files. Add the namespaces to the namespace_import_list file at this path:
You can also add necessary dlls to the view class that aggregates aspx files. This file is located in:
Problems that were solved
- The problem of executing the path with extra characters after the slash character was solved.
- Fixed the problem of replacing the class file with failed compilation in the last successful compilation.