错误:
在VS 2017使用
R
e
q
u
i
r
e
d
F
i
e
l
d
V
a
l
i
d
a
t
o
r
RequiredFieldValidator
RequiredFieldValidator控件时出现如下错误。
解决方案:
- 在Web.config中降低.Framework的版本,具体方法如下:
<system.web>
<compilation debug="true" targetFramework="4.6.1"/>
<httpRuntime targetFramework="4.6.1"/>
</system.web>
- 更改:
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>