In order to evaluate TX Text Control .NET Server for ASP.NET, it is possible to download the trial version for a local installation of all requirements or to create a trial token to use our trial backend server. In case you are using the trial backend, no trial download or local installation is required to evaluate specific components of TX Text Control.
This tutorial shows how to use the trial token to evaluate the document editor of TX Text Control .NET Server for ASP.NET in an ASP.NET Core web application.
Create a Trial Token
In a first step, a trial token must be created on our website.
After following the steps to create the token, you should see the following page that displays information about your trial token.
Creating the Application
Make sure that you downloaded the latest version of Visual Studio 2022 that comes with the .NET 6 SDK.
In Visual Studio 2022, create a new project by choosing Create a new project.
Select ASP.NET Core Web App (Model-View-Controller) as the project template and confirm with Next.
Choose a name for your project and confirm with Next.
In the next dialog, choose .NET 6 (Long-term support) as the Framework and confirm with Create.
Adding the NuGet Package
In the Solution Explorer, select your created project and choose Manage NuGet Packages... from the Project main menu.
Browse for txtextcontrol.web and Install the latest version of the TXTextControl.Web package.
Configure the Application
Open the Program.cs file located in the project's root folder. Add the following code after the entry
Adding the Control to the View
Find the Index.cshtml file in the Views -> Home folder. Replace the complete content with the following code:
Replace the trial token (line 5: mWSLUHjhhgs567Rt6sKvS) with your generated trial token from step 1.
This code adds the Text Control document editor to the view and uses the WebSocketURL property to connect to the trial backend.
Compile and start the application to see the document editor in your web application.