我的網站是繁體的,在搜索的TextBox上輸入簡體的字,然後點查詢就出錯啦
錯誤如下
A potentially dangerous Request.Form value was detected from the client (txtPropertyname= "无 ").
------解决方案--------------------------------------------------------
输入繁体时没有错误吗
------解决方案--------------------------------------------------------
< %@ Page validateRequest= "false " %>
------解决方案--------------------------------------------------------
你可以把简体转换为繁体啊
添加对Microsoft Visual Basic.net runtime.dll的引用
//繁体转简体
MessageBox.Show(Microsoft.VisualBasic.Strings.StrConv( "張三 ",Microsoft.VisualBasic.VbStrConv.SimplifiedChinese,0));
//简体转繁体
MessageBox.Show(Microsoft.VisualBasic.Strings.StrConv( "张三 ",Microsoft.VisualBasic.VbStrConv.TraditionalChinese,0));