Need Character limit solution

I am thinking to purchase license for CKEditor.I am thinknig to replce my control with CKEditor.It would be gr8 help if you can provide solution ASAP for character limit for ckEditor,So I can set limit to number of characters allowed.I am using Asp.Net. I checked in forum support ,but unable to find proper solution for Asp.Net.

I can envision several hacks to implement a character counter, all of which involve capturing the text with each keystroke or other change, and then stripping the resulting html of relevant stuff to get a count. A lot of js code. But how do you deal with images, if you allow their insertion, for example, or bulleted or numbered lists, or indentations that use either margins (from a paste) or non-breaking spaces? The whole idea of rich text is to transcend the limitations of plain text in a textarea (where character counting is child's play).

So I came up with a radically different idea, which I am sure (or at least I hope) is not particularly original. And that is to feed to the page a parameter that governs the total area in pixels squared allowed to a block of html generated by the editor. Then, whenever you wish to check, feed the html from the editor into a div of a fixed width, check its height, and if the height is greater than the area divided by the width (with, of course, the appropriate rounding, and with perhaps some sort of percentage tolerance given subtle rendering differences among browsers), do something -- like don't submit, or advise the user that "the text" is too long, or both, or -- Heaven knows what would be best for you.

This dissolves all issues concerning the amount of text devoted to html and the length of what will render as text. Plus it renders images to get their actual displacement. Solves all manner of questions which are lurking in the future for those intrepid souls who would otherwise attempt a character count.