Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
am using ajax editor control am saving data entered in editor in to sqlserver2008 (ex: editor1.content)as HTMl content

and on page load am binding grid on selectindex change i need to bind data in to editor1

when am using editor1.content= row.cell[1].text
on design mode am getting HTML mode,

how to set my DB data in to HTML mode and see in design mode
Posted
Comments
Rob Branaghan 26-Apr-11 8:33am    
Doesnt it have to store the edited text without HTML tags?

so instead of storing < it would store &-lt; (minus the -)

(CodeProject keeps converting it to the code)
karthikkushala 26-Apr-11 8:42am    
by stroing with '<' html tags i can bind that directly to literal
Steven.Pinto2000 29-Apr-11 6:30am    
i think u need to change the datatype to ntext to save in the database

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900