Home  >  Article  >  Web Front-end  >  C#(HTML)_小技巧_关于textbox框中不能输入HTML标签的解决方法(如输入“<p>”后,在提交表单时系统会崩溃)_html/css_WEB-ITnose

C#(HTML)_小技巧_关于textbox框中不能输入HTML标签的解决方法(如输入“<p>”后,在提交表单时系统会崩溃)_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:48:341410browse

主要修改文件是config文件(Web.config):

1、在标签中添加属性:validateRequest="false"

  

  

2、在标签中添加属性:requestValidationMode="2.0"

  

至此问题解决。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn