Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 12th, 2008, 11:57 AM
Friend of Wrox
Join Date: Jan 2006
Location: Hardwar, Uttranchal, India.
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna
Default HTML supported text filed.

Hello friends,

I've to show data in textbox but when i put the data into it, it is showing HTML tags also like <BR> I want a new line in place of <BR> tag.
can anyone help me here?


  #2 (permalink)  
Old November 12th, 2008, 04:31 PM
Friend of Wrox
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

Bring up the page in your browser. Then click on the VIEW menu and then click on the SOURCE menu item.

What kind of HTML field is ASP.NET producing for that text box??

Unless I am much mistaken, it will be a <TEXTAREA>. And, yes, an HTML textarea ignores embedded HTML and just displays it as text.

What you could do is simply replace the HTML <br> tag with a vbNewLine character. But that won't solve all the other possible HTML tags: <b>, <p>, [u], and more.

You probably need to use one or more REGULAR EXPRESSIONS to do the replacements completely.

But here's a question: Do you NEED to allow the user to EDIT this data??? If not, simply do *NOT* put it into a textbox! Just put it into a LABEL, instead. Voila, it should work.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
boolean filed in crystal report saeed_sp BOOK: Professional Crystal Reports for VS.NET 0 August 2nd, 2008 11:58 PM
Text To HTML sumith ASP.NET 2.0 Basics 1 October 25th, 2007 02:26 AM
Gridview - Place cursor inside filed Sindbad Visual Studio 2005 0 September 21st, 2007 09:24 AM
[Q] How do you dynamically reference the filed in CyanBlue C# 6 September 2nd, 2006 11:24 AM
Ch3, P.76 - text.html/text.php not working Hostile BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 May 15th, 2004 11:09 AM

All times are GMT -4. The time now is 03:38 PM.

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