Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2015, 04:04 PM
Registered User
 
Join Date: Mar 2015
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Saving RichTextBox Content to Database

In page 630 we have the Textbox that is used to input the user biography.

I have hooked it to the Tiny-MCE(a platform independent web based Javascript HTML WYSIWYG editor control) to assist the user to format the text inside the textbox.

my question,

1)how can i save this content with the formatting to the database instead of using the ASP.NET Profile.
2)How can I retrieve the same content from the database
 
Old May 26th, 2015, 03:21 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi thee,

Saving from a rich text editor is the same as saving from a standard text field. This is covered in the database chapters. For example, the section Updating and Inserting Data on page 459 is a good start. Also, the chapter on LINQ will give you some pointers on how to do this from a code only perspective.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
GeorgeLyzlie (May 30th, 2015)





Similar Threads
Thread Thread Starter Forum Replies Last Post
SAVE A RICHTEXTBOX INTO A DATABASE EUSEBIO SANTANA Visual Basic 2008 Essentials 1 September 23rd, 2010 10:03 PM
Read content of PPT files and saving to database Padmaja11 Other Programming Languages 0 July 19th, 2007 03:27 AM
saving html content as xml data using javascript ravillasubhash Javascript How-To 0 May 23rd, 2007 08:11 AM
RichTextBox with Access Database kooltmd VB How-To 1 April 21st, 2004 06:52 AM
Retaining RichTextBox Format in Database mrhyman VB How-To 4 February 25th, 2004 03:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.