The following tutorial shows how to create an ASP.NET (Framework) web application that uses the Document Editor ╰ TX Text Control .NET Server for ASP.NET
╰ Web.MVC Namespace
╰ TextControl Class
The TextControl class represents an extension object implementing the Text Control rich text editor functionality. .
There are two ways to evaluate the TX Text Control Document Editor. You can either host your own backend by downloading the trial version of TX Text Control .NET Server for ASP.NET, or by creating a trial access token to use a hosted backend, valid for 30 days:
Creating the Application
Make sure that you downloaded the latest version of Visual Studio 2022.
In Visual Studio 2022, create a new project by choosing Create a new project.
Select ASP.NET Web Application (.NET Framework) as the project template and confirm with Next.
Choose a name for your project, select .NET Framework 4.8 as the Framework and confirm with Create.
In the next dialog, choose MVC as the project template, check Web API from the Add folders & core references selection 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.
Select either Text Control Offline Packages or nuget.org as the Package source. Packages in the official Text Control NuGet profile are frequently updated.
In case you are using a Trial Access Token, please choose nuget.org.
Browse for txtextcontrol.web and Install the latest version of the TXTextControl.Web package.
Adding the Control to the View
Find the Index.cshtml file in the Views -> Home folder. Replace the complete content with the following code to add the document editor to the view:
Trial Access Token Users
In case you are using a Trial Access Token, replace the content with the following code.
Replace addYourTokenHere with your actual Trial Access Token.
Compile and start the application.