在ASP.NET无法保存文本框如果文本之间的'大于'和'小于'符号给出 [英] In ASP.NET unable to save TextBoxes if the text is given in between ''greater than' and 'less than' symbols

查看:95
本文介绍了在ASP.NET无法保存文本框如果文本之间的'大于'和'小于'符号给出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果文本输入是'大于'和符号'小于'之间,我无法保存的文本。请找到一个解决这个无论是在Javascript或ASP.net

If the text input is between 'greater Than' and 'less than' symbol, I am unable to save the text. Kindly find a solution to this either in Javascript or ASP.net

推荐答案

如果你想允许HTML标签,即<>,那么你需要设置validateRequest = ASP页面假,最好的办法是分析那些标签使用HTML EN codeR。

If you want to allow HTML tags i.e "<>" then you need to set validateRequest="false" in ASP pages , best thing is to parse those tags using HTML encoder .

这篇关于在ASP.NET无法保存文本框如果文本之间的'大于'和'小于'符号给出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆