ASP.NET Editor Setup

ShieldUI Editor for ASP.NET is a server-side wrapper component implemented in the ASP.NET server side component pattern. To get started using the component simply add a reference to the Shield.Web.UI assembly in your ASP.NET project.
Since this is a wrapper of JavaScript Editor component you need to include the references to the CSS and JavaScript resources in the HEAD section of your webpage:

<head id="Head1" runat="server">
<link rel="stylesheet" type="text/css" href="css/light/all.min.css" />
<script src="js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="js/shieldui-all.min.js" type="text/javascript"></script>

The javascript resources for client side component you can find on the download page under the ShieldUI JavaScript section.

In order to have intellisence into the aspx page markup you need to add the Shield.Web.UI namespace to the
node of the section in your Web.config configuration file:

      <add tagPrefix="shield" namespace="Shield.Web.UI" 

The other approach is to add following line of code into your aspx page:

<%@ Register Assembly="Shield.Web.UI" Namespace="Shield.Web.UI"
    TagPrefix="shield" %>

The ASP.NET Wrapper offers a 1:1 correspondence with the relevant properties of the jquery widget.

For example, the following client side initialization:

    cls: "inline-mode",
    commands: [
        "bold", "italic", "underline",

is translated into the following ASP.NET code:

<shield:ShieldEditor ID="shieldEditor" runat="server" Cls="inline-mode" Selector="#editor">
        <shield:EditorCommand Text="bold" />
        <shield:EditorCommand Text="italic" />
        <shield:EditorCommand Text="underline" />
        <shield:EditorCommand Text="viewHtml" />

The following example demonstrates a standard client-side initialization and setup of the widget in JavaScript, while this example is its ASP.NET counterpart.