Hi Friends;
I want to create a textbox same like c# corner textbox with all the text formatting controls like above.
If you ask the question in c# corner or if u r giving reply to a question,then
u have to type the text in the text box control and on top of it we r seeing the text formatting controls (like B I U, to make text bold, italic , etc...)
how to keep those controls on top of the asp.net textbox, and how to stored the user modified data in textbox to database such that the display of text sould be in same format (bold text should display like bold and italic should display like italic... i think we have to save the html of the text in database if that is the case then how to convert text box text to html)
Loading
SenthilkumarPosted Mar 15, 2012, 11:53 AM
Are you talking about the text editor?
Those controls are allowing you to get the typed content in the html format.
You can take the content as html and the same can be stored in the database.
When you have the content in html format and the same can be applied to the web page. If you use the div or span control
then you can get the html content and just assign to the div tag.
divHTMLContent.InnerHTML = "senthil";
Hope this will help you to get some idea.