Avatar of el_scotty
el_scottyFlag for United States of America

asked on 

FCK Editor & MSSQL

Re: ASP.net 2.0.
Hi folks, I'm looking for a straight & simple OUTLINE of saving FCKeditor text to a MSSQL database, and retrieving it back 2 ways (2 pages) - for editing, and displaying in HTML.

My app has an admiin form which contains the FCKeditor: ID=FCKeditor1
I want to save the value of its contents to an MSSQL field (I have a nvarchar type set).
Also, the application currently follows procedure of writing form values to a Public Shared variable, before being written to the DB. I am assigning the value of FCKeditor to a variable of (lets call it myEvent.Header (string type)) before writing to DB. ie.
myEvent.Header = FCKeditor1.Value ...Then my SQL Insert or Update clause will post FCK stuff into the DB by parameter '.AddWithValue("@Header", Header)'

At current try it is not writing anything to DB, so...
I need to be able to save the FCKeditor contents to the DB and repopulate its contents from the DB when I open the admin form to edit the record. Also , I have a separate 'public' Events page which will have a div to render the saved RTF/HTML from the DB.

In your answer, please tell me if - validateRequest='false' is important in the page directive for either the admin(edit) page or the public HTML display page.

Thanks ahead

.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
el_scotty
SOLUTION
Avatar of prairiedog
prairiedog
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of el_scotty
el_scotty
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo