Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

requestValidation and HTML

Status
Not open for further replies.

stevet26

Programmer
Feb 9, 2005
53
Hi

Does anyone have any tips for saving HTML code, generated by a rich text editor, to an SQL server database without turning requestValidation off?

I would prefer not to have to to turn requestValidation off as it is only one control out of thirteen that I will be expecting html code to be entered into it.

Thanking you in advance
 
You shouldn't have a problem saving HTML code (it should only be a problem if the HTML code contains potentially unsafe scripts). See this article for more info:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Unfortunatly, I do have a probelm svaing HTML. The error picks up the <br/> tag as unsafe.
 
Sorry, I meant that you shouldn't have a problem saving HTML code if you disable requestValidation and then use Server.HtmlEncode to encode the posted data.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top