Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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, 2006, 08:33 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTML tags is not working in textarea in ASP.net

Hi all,

I m using a textarea in a form

when I enter text "suman singh", it works fine, and save data into databse

but when I enter "<p>suman singh</p>", it doesn't save data into database..

I don't have any problem on localhost, but when I uploaded files and dll to the server, this problem occurs..

Please help...

Regards,

Suman Singh


 
Old May 23rd, 2006, 04:48 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

hi,

i had a similar problem where my runtime threw errors when i placed html tags in textarea. You can do one thing. Use javascript before submitting the form to replace < and > with &gt; and &lt; . In the server code replace &gt; and &lt; with < and > before saving. I hope it will work for you

Anubhav Kumar





Similar Threads
Thread Thread Starter Forum Replies Last Post
asp server controls Vs HTML tags saurabh321 ASP.NET 2.0 Basics 1 November 3rd, 2006 04:33 PM
TEXTAREA tag in html sapphire87 PHP How-To 0 July 26th, 2006 02:25 PM
html tags in asp:textbox sureshbabu VS.NET 2002/2003 2 May 3rd, 2006 12:30 AM
html textarea to DB ginoitalo Beginning PHP 1 May 30th, 2005 01:49 AM
return a string with all HTML and ASP tags strippe ccc_storage ASP.NET 1.x and 2.0 Application Design 2 September 23rd, 2004 10:43 PM





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