Thursday, 3 October 2013

How to turn a Textbox into a rich HTML editor using AjaxControlTookit in ASP.NET

Hi Friends,in this article i will explain about How to turn a Textbox into a rich HTML editor using AjaxControlTookit.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RichTextBox.aspx.cs"Inherits="RichTextBox" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit"Assembly="AjaxControlToolkit"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <asp:ToolkitScriptManager runat="Server" />
<asp:TextBox
        ID="txtMailBody"
        TextMode="MultiLine"
        Columns="40"
        Rows="10"
        runat="server" />

<asp:HtmlEditorExtender
        TargetControlID="txtMailBody"
        runat="server" />
    </div>
    </form>
</body>
</html>

"If you like my blog or articles, you can appreciate by leaving your comments or Liking my Facebook pageAspdotnet-kishore, following on Google+ Aspdotnet-Kishore, Twitter  on AspdotnetKishore, Linked in Aspdotnet-Kishore, stumbling my posts on stumble upon and subscribing on  RSSfeed Aspdotnet-Kishore for free updates directly to your Email inbox . Watch my blog  for more articles."

No comments:

Post a Comment

© 2012-2018 Aspdotnet-Kishore.blogspot.com. All Rights Reserved.
The content is copyrighted to Kishore and may not be reproduced on other websites without permission from the owner.