---
title: "How to use NicEdit in asp.net."  
description: "How to use NicEdit in asp.net."  
author: "Anonymous User"  
published: 2015-12-17  
updated: 2023-07-03  
canonical: https://www.mindstick.com/forum/33749/how-to-use-nicedit-in-asp-dot-net  
category: ".net"  
tags: ["asp.net", "jquery"]  
reading_time: 2 minutes  

---

# How to use NicEdit in asp.net.

I want to use NicEdit in [Asp.net](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) Please help me.

## Replies

### Reply by Aryan Kumar

To use Nicedit in ASP.NET, you can use the following steps:

1. Add the Nicedit library to your ASP.NET project.
2. Create a view that will display the Nicedit editor.
3. In the view, use the Nicedit library to create the editor.
4. Bind the editor to a model.

Here is an example of the code:

HTML

```plaintext
@{
    // Get the data for the Nicedit editor
    var data = GetData();
}

<html>
<head>
    <title>Nicedit</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/nicedit/3.0.7/nicEdit.min.js"></script>
</head>
<body>
    <h1>Nicedit</h1>

    <textarea id="nicedit"></textarea>

    <script>
    $(document).ready(function() {
        // Create the Nicedit editor
        var nicedit = new nicEditor({
            selector: "#nicedit"
        });

        // Bind the editor to the data
        nicedit.setValue(data);
    });
    </script>
</body>
</html>
```

This code will add the Nicedit library to your ASP.NET project. The `GetData` function will get the data for the Nicedit editor. The `nicedit` element will be used to create the Nicedit editor. The `selector` attribute of the `nicedit` element will be set to the ID of the textarea that will contain the editor.

The `nicedit` element will be bound to the `nicEditor` method of the Nicedit library. The `nicEditor` method will create the editor and bind it to the textarea.

The `nicEditor` method will also bind the editor to the data returned by the `GetData` function.

### Reply by Anonymous User

NicEdit is a Lightweight, Cross Platform, Inline Content Editor to allow easy editing of web site content on the fly in the browser.

NicEdit Javascript integrates into any site in seconds to make any element/div editable or convert standard textareas to rich text editing.

```
<html><head> </head><body><div><script type="text/javascript" src="../nicEdit.js"></script><script type="text/javascript">    bkLib.onDomLoaded(function () { nicEditors.allTextAreas() });</script><h4>Content</h4><textarea cols="100" rows="20" style="width:800px;"></textarea> </div></body></html>
```

![How to use NicEdit in asp.net.](https://www.mindstick.com/mindstickforums/3615f624-395a-49ec-97d9-a698b6181955/images/f1768517-f508-4d97-a1cd-6ad53ac95a6c.png)


---

Original Source: https://www.mindstick.com/forum/33749/how-to-use-nicedit-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
