I'm not exactly sure if this is the proper forum for this, if you think there are other forums more appropriate feel free to inform me.
I'm using ASP.Net with the codebehind as
VB.Net to create a text editor for my messageboard with a backend SQLServer database holding the messages. The messageboard is in working condition and is mainly composed of a datalist with a ItemTemplate and editTemplate mode. Adding modifications to the text itself is fairly easy, simply a matter of adding html tags such as <b> </b>. I was able to provide functionality to allow the user to select/highlight a piece of text and click on a button in the edit mode leading to the text being modified with the html tags, uploaded to the database, and displayed properly formatted in the view mode. I haven't figured out how to turn off formatting if the text is formatted already--as in if you have a word that's in bold font, and you select that word and click on bold again, you'd expect it to be reverted back to normal-not bold anymore.
That isn't the main issue though. The user is unsatisfied with the implementation of the text editor section. He wishes it to be like ms word in that when you format a piece of text, it shows the text format change immediately right there. In addition he does not wish to see the html tags. I've tried the textbox control and the label control, and they work differently in displaying the text. The label control will display the text properly formatted, but does not allow editing such as deletion, adding, modification of words. The textbox will display the html tags and allows editing. I have been unable to find a control that combines the best of both worlds--that is, allows editing and displays the text properly formatted. If there is such a control, please let me know.
Failing that, I placed both a textbox and a label on the edit template linked to the message in the database. I used code to eliminate all html tags from the text in the textbox. I was hoping to find a way to link the text in the textbox with the text in the label in such a way that when someone modifies/adds/deletes text in the textbox, it gets reflected in the label. The onchange property of the textbox would seem to support that. However, when I invoke the update method in the textbox, it updates the database but goes back to the view page. I would like help in finding a way to link the textbox and the label in the manner described above.
If there are any further questions or details that I can answer/provide, let me know.