Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 19th, 2007, 07:30 AM
Authorized User
 
Join Date: Jan 2007
Location: Islamabad, Punjab, Pakistan.
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default Text Formating in ASP.Net Textbox

I m saving data in to database from RTF control. It works well. But when I display data into textbox, it looses its formating and display along with HTML tags.

eg <BR> ALI <B>IRFAN</B>.

Please tell me how to control this scenario and to display data in actual formating in TextBox from database.

THANKS

__________________
Regards,
Ali Irfan
 
Old May 22nd, 2007, 07:48 AM
Friend of Wrox
 
Join Date: May 2006
Location: Northampton, United Kingdom.
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default

Try displaying it as a label (Unless you need to re-edit the text in which case use your rtf control).


 
Old May 22nd, 2007, 11:01 PM
Authorized User
 
Join Date: Jan 2007
Location: Islamabad, Punjab, Pakistan.
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default

Ok Dear Thanks alot

Is there any RTF contol in ASP.Net control toolbox? Or we have to use 3rd party component



 
Old May 23rd, 2007, 12:40 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: Amman, , Jordan.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I really don't think there is one on the asp.net..
and if their isn't.. i suggest you create ur own web control

Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
 
Old May 25th, 2007, 03:04 AM
Friend of Wrox
 
Join Date: May 2006
Location: Northampton, United Kingdom.
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default

Try

http://www.webwizguide.com/asp/sampl...pplication.asp

It works in asp.net but please remember the security implications of allowing it on your site. (Preventing SQL injection!)







Similar Threads
Thread Thread Starter Forum Replies Last Post
Formating text bjackman Access VBA 1 August 22nd, 2005 03:04 AM
ASP.NET TextBox Control Dilema johne ASP.NET 1.0 and 1.1 Basics 4 April 19th, 2005 08:13 AM





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