WorkplaceX.org

Boost your Business App

Hello World Example

Following example shows how to display a simple text.

The namespace Framework.Json contains all semantic components to build a logical tree. It contains components like button, navbar or data grid. This logical tree is different from the html tree. The logical tree contains only relevant data to build an html tree. Only the logical tree is serialized and stored on the server at the end of a request.

AppJson is the root component of any application. On an incoming request the framework looks in the file ConfigServer.json to decide which root component to take.

// File: Application/App/AppMain.cs

namespace Application
{
    using Framework.Json;

    public class AppMain : AppJson
    {
        public AppMain()
        {
            new Html(this) { TextHtml = "Hello World" };
        }
    }
}

Output looks like this:

/assets/hello-world.png

Feedback

Provide feedback to this page if you have any question regarding content or something should get updated.


ABOUT

WorkplaceX is an initiative to simplify and standardize the development of business applications. It is based on ASP.NET Core, Angular, Bootstrap, Bulma and SQL Server.

Copyright © 2022 All Rights Reserved by WorkplaceX.org
v1.11 (Framework v3.52.22 ♥ 15:18:55)