Click here to Skip to main content
6,634,665 members and growing! (17,061 online)
Email Password   helpLost your password?
Web Development » ASP.NET » General     Intermediate

RichTextBox user control for ASP.NET 1.1

By s.kushal

RichTextBox user control for ASP.NET 1.1
Javascript, HTML.NET 1.0, .NET 1.1, .NET 2.0, Win2K, WinXP, Win2003, ASP.NET, WebForms, VS.NET2003, IE 6.0, IE 5.5, IE 7, Dev
Posted:20 Sep 2007
Views:26,115
Bookmarked:20 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
7 votes for this article.
Popularity: 3.45 Rating: 4.08 out of 5

1
1 vote, 14.3%
2

3

4
6 votes, 85.7%
5

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

About the Author

s.kushal


Member

Occupation: Web Developer
Location: India India

Other popular ASP.NET articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 16 of 16 (Total in Forum: 16) (Refresh)FirstPrevNext
GeneralNeed help to set values in Richtextbox Pinmembergopikrishnan.in8:28 2 Aug '09  
GeneralRich text Box Pinmemberchamieshani23:57 29 Apr '09  
GeneralRichTextControl Pinmemberpwicks4:28 24 Mar '09  
GeneralNot seeing the methods Pinmemberjshiv8:50 12 Mar '09  
GeneralSetting Default Message PinmemberGovind Gopal5:19 29 Dec '08  
QuestionRTB with IE7 PinmemberToCentre23:58 25 Sep '08  
GeneralNO GO PinmemberMember 36369409:16 22 May '08  
GeneralThanks. I find it usefull PinmemberAbdul Bakour11:45 15 Apr '08  
Generalnot working in mozilla Pinmemberna_k1:42 2 Apr '08  
GeneralRe: not working in mozilla Pinmemberna_k4:49 3 Apr '08  
GeneralRe: not working in mozilla Pinmemberankurgupta4142:33 28 Aug '09  
GeneralSetting Default Message Pinmembersujanakar2:28 6 Oct '07  
GeneralRe: Setting Default Message Pinmemberjimmy.jiang23:44 26 Jun '08  
Generalnice work Pinmembermultimedia96:36 21 Sep '07  
GeneralRe: nice work PinmemberSteve Maier8:24 21 Sep '07  
GeneralRe: nice work Pinmembers.kushal2:42 22 Sep '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 20 Sep 2007
Editor:
Copyright 2007 by s.kushal
Everything else Copyright © CodeProject, 1999-2009
Web21 | Advertise on the Code Project