0

How can I save rich text format data using asp.net in database ? How to retrieve the same data in a gridview ?

I am trying to the take the input using texteditor provided in bootstrap framework.

amphetamachine
  • 27,620
  • 12
  • 60
  • 72
Robin Agrahari
  • 807
  • 3
  • 11
  • 24
  • What you have tried so far ? – Satinder singh May 26 '15 at 10:02
  • I have not tried anything yet.. I was just googling around and found few third party plugins, but I want something which can be done without a third party plugin. – Robin Agrahari May 26 '15 at 10:13
  • You can directly save innerHTML of your texteditor into database, all you need to set `ValidateRequest="false"` in @Page line on your web page – Satinder singh May 26 '15 at 10:18
  • This property will be applied to all the forms in that page. Is it ok to have this page directive set for all other items in the page ? will it hamper normal behaviour of other items in the page ? – Robin Agrahari May 26 '15 at 14:14

1 Answers1

0

I have found a solution to this question. One easy way for a begginner is to use Editor control in Ajax Control toolkit bundle. Editor control can be used like most of the other controls are used from the Ajax Control Toolkit(ACT) bundle. You need to add the ScriptManager from ACT bundle for the Editor control to work.

Helpful link : [Online Demo and Documentation of the Control]

The saved value can be fetched and binded into a label control or even a gridview to view on the webpage.

Robin Agrahari
  • 807
  • 3
  • 11
  • 24