Page tree
Skip to end of metadata
Go to start of metadata

These instructions describe how to add to a new Web Site project in Visual Studio 2012. Adding to an existing Web Site or Web Application is a similar process.

An "on-premises" deployment is used here.

Step 1. Unzip the distribution to somewhere on your hard drive.

Under the top-level "TextboxioForAspDotNet" folder, notice these folders:

  1. aspdotnetcontrol - this contains the .NET dll files for the server control.

  2. demo - a demonstration project
  3. textboxio - standard distribution

The demo project has a .sln file which can be opened in Visual Studio, alternatively you can create your own new project using the steps described below.

Step 2. Create a Visual Studio project

You can create either a new Web Site, or a Web Application. We'll create a Web Site.

Step 3. Add References to dlls

Right-click your website project and click "Add Reference".

Click Browse, and navigate to where you unzipped for ASP.NET.

Select both "TextboxioControl.dll" and "HtmlAgilityPack.dll" and click Add, then OK.

You should now have the two dll files in your Bin folder.

Step 4. Add standard client distribution

Next we need to add the standard client distribution to the project, so that it has the client-side JavaScript library.

Navigate to where you unzipped the distribution in Windows Explorer. Drag the "textboxio" folder into your project.

Step 5. Set web.config settings

In this step we adjust the validation properties of the application.

Add requestValidationMode="2.0" to the httpRuntime tag, in the configuration: system.web section of your web.config file.

This is required in order to submit HTML content in ASP.NET web forms without the built-in validation blocking it. A per-page setting is also required, which we'll get to below.


Step 6. Create a new Web Form

Now we need to set up a web form and its associated validation properties.

Right-click the project and select Add > Web Form. Give it a name.


Make the following changes to the aspx file:

  1. Add ValidateRequest="false" to the <%@ Page ... %> tag

  2. Add the following line just below the <%@ Page ... %> tag:

    <%@ Register Assembly="TextboxioControl" Namespace="TextboxioControl" TagPrefix="textboxio" %>

Step 7: Add a control to your page

To add the control to your page, add the following code within the <form> tag of your page:

            Content="<p>Hello from!</p>"


Step 8: Open in your browser

Right-click your aspx page, then click "View in Browser". You should see the editor running on your page. 


The final aspx page should look something like this:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page1.aspx.cs" Inherits="Page1" ValidateRequest="false" %>
<%@ Register Assembly="TextboxioControl" Namespace="TextboxioControl" TagPrefix="textboxio" %>
<!DOCTYPE html>
<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
            Content="<p>Hello from!</p>"


Where to from here?

From here, you may wish to:

  • Customise the editor by setting Control Properties
  • Set up Image Uploads
  • Set up the Spelling service
  • Persist HTML content in your database



  • No labels