Solved

Remove HTML tags from Textbox w/o turning off ValidateRequest

Posted on 2006-10-19
2
326 Views
Last Modified: 2008-02-01
I know when a user tries to add HTML like tags in a text box, an error will occur if ValidateRequest is turned off....however there are some security implications when this is turned off....I know how to remove HTML tags using RegEx, but I don't know how to remove the HTML before the validaterequest throws an error.

Any Ideas? I want to just remove the HTML so the text being posted will be valid. Thanks!
0
Comment
Question by:Skytide
2 Comments
 
LVL 18

Accepted Solution

by:
tusharashah earned 500 total points
ID: 17768011
You can do this using JavaScript at client side before data is submitted to server, here are couple of links on this topic:
  - http://www.codeproject.com/aspnet/SubmissionHijack.asp?df=100&forumid=86607&exp=0&select=921475
  - http://weblogs.asp.net/mhawley/archive/2004/03/15/89762.aspx
0
 

Author Comment

by:Skytide
ID: 17768688
Thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question