Click here to Skip to main content
Click here to Skip to main content
Go to top

RichTextBox user control for ASP.NET 1.1

, 20 Sep 2007
Rate this:
Please Sign up or sign in to vote.
RichTextBox user control for ASP.NET 1.1

Introduction

I just finished creating a RichTextbox control for my website.

So I thought it will be a great idea to put it on CodeProject so that it can be used for other developers who want such control and also I can get some good feedback to create better controls and improving the current one.

This is a simple control that lets you put in text and you can make the entered text Bold, Underline , Italics, Align the text, put a horizontal rule, give it desired font and size.

Also I have made the code such that you can get the text easily from the control using the getText() and getHTML() methods. The getText() method will give the inner text of the textbox and the getHTML() method will give the text with the HTML code embedded in the resulting text.

Checkout the code of the control where I have given a working example of using it.

Also the control is such designed that it will work perfectly on a Datagrid. Where in you can use it as a template item.

Any comments and/or suggestion are very much appreciated.

Using the code

Using the code is pretty simple and easy. Any web developer who has littele knowledge of working with user controls will be able to use it.

Although i have given a fully functional working example with it. You can view the example and learn how to use the control.

Screen Shots

Screenshot - ScreenShot1.jpg

working example in a stand alone page.

Screenshot - ScreenShot2.jpg

working example in a grid.

Conclusion

In case anyone wants to add some more functionalities to the code he / she is more than welcome to do so. Please give some feedback and observations as this is my first project that i have uplaoded. if you find certain ways that i can improve on, please let me know so.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

s.kushal
Web Developer
India India
No Biography provided

Comments and Discussions

 
QuestionNeed more funcition PinmemberDark_traveller10-Mar-13 22:10 
GeneralMy vote of 4 Pinmembermukesh_panth19-Dec-12 0:23 
QuestionRich text box with hyperlink attach to the text PinmemberMember 779443228-Nov-12 16:44 
GeneralMy vote of 5 Pinmembersunnyuppal338-Feb-12 5:58 
GeneralMy Vote of 5 too PingroupTHE SK1-Feb-11 20:23 
GeneralMy vote of 5 Pinmembershailendra_ec200330-Nov-10 19:24 
GeneralOnBlur event of Iframe is not working in Firefox PinmemberChandra.Anumakonda7-Dec-09 2:37 
GeneralNeed help to set values in Richtextbox Pinmembergopikrishnan.in2-Aug-09 7:28 
GeneralRe: Need help to set values in Richtextbox Pinmembergorkemdur16-Feb-11 23:00 
GeneralRich text Box Pinmemberchamieshani29-Apr-09 22:57 
GeneralRichTextControl Pinmemberpwicks24-Mar-09 3:28 
GeneralNot seeing the methods Pinmemberjshiv12-Mar-09 7:50 
GeneralSetting Default Message PinmemberGovind Gopal29-Dec-08 4:19 
QuestionRTB with IE7 PinmemberToCentre25-Sep-08 22:58 
GeneralNO GO PinmemberMember 363694022-May-08 8:16 
GeneralThanks. I find it usefull PinmemberAbdul Bakour15-Apr-08 10:45 
Generalnot working in mozilla Pinmemberna_k2-Apr-08 0:42 
GeneralRe: not working in mozilla Pinmemberna_k3-Apr-08 3:49 
GeneralRe: not working in mozilla Pinmemberankurgupta41428-Aug-09 1:33 
GeneralSetting Default Message Pinmembersujanakar6-Oct-07 1:28 
GeneralRe: Setting Default Message Pinmemberjimmy.jiang26-Jun-08 22:44 
Generalnice work Pinmembermultimedia921-Sep-07 5:36 
GeneralRe: nice work PinmemberSteve Maier21-Sep-07 7:24 
GeneralRe: nice work Pinmembers.kushal22-Sep-07 1:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140905.1 | Last Updated 21 Sep 2007
Article Copyright 2007 by s.kushal
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid