What's the SkyLite ?
SkyLite is a server-centric .NET framework designed for the rapid development of modern, data-driven web applications.
It empowers developers to build rich user interfaces and complex server-side logic primarily using VB.NET or C#, significantly reducing the need for extensive client-side JavaScript.
The framework is particularly suited for creating robust business applications, such as ERPs, CRMs, and internal administrative tools, where data integrity, server-side control,
and development speed are paramount. By abstracting away much of the boilerplate HTML and complex AJAX communication, SkyLite allows developers to focus on core application functionality
while maintaining a clear and maintainable codebase.
Architectural Philosophy
The core architecture of the SkyLite Framework revolves around the WebPage base class and a well-defined request lifecycle.
Each page in an application is represented by a class that inherits from WebPage, which automatically handles incoming GET and POST requests.
During an initial GET request, the framework follows a distinct lifecycle,
including the crucial OnInitialized method where developers programmatically construct the user interface using a rich set of UI controls.
This server-driven approach ensures that business logic and UI generation are tightly integrated and managed within a robust, type-safe .NET environment,
providing a single source of truth for the application's state and presentation.
UI Development and Controls
UI development in SkyLite is streamlined through a comprehensive set of server-side UI controls available in the skylite.ToolKit namespace.
Controls such as Texts, Dropdown, Grid, Button, and various layout containers (HtmlElementBox, Wrap) abstract away the underlying HTML markup.
This allows developers to define the interface declaratively in their preferred .NET language.
Each control exposes objects, properties, and methods for granular control over attributes, styles, and event handlers.
The final HTML for a control is generated by calling its .HtmlText() method, which can then be combined and rendered to the client.
This methodology promotes code reusability and simplifies the creation of complex, data-bound forms and displays.
Client-Server Communication Model
A defining feature of the SkyLite Framework is its simplified model for asynchronous client-server communication,
which operates without traditional page refreshes. This interaction is primarily managed by two core components:
the client-side $ApiRequest JavaScript function and the server-side ApiResponse class. User actions in the browser (e.g., a button click)
call the $ApiRequest function, which seamlessly sends data to a corresponding public function on the server's WebPage class.
The server-side function processes the request and returns an ApiResponse object. This object acts as a command container,
instructing the client's core JavaScript library to perform actions such as navigating to a new page
(.Navigate()), displaying a popup (.PopUpWindow()), or dynamically updating a specific element's content on the page
(.SetElementContents()). This powerful pattern gives developers full server-side control over real-time client-side updates.
Contact
If you have any question, please feel free to reach out to
hkim6000@gmail.com
© 2025 theskylite.com All right reserved
North Carolina, USA