ValidationSummary - ShowMessageBox未显示在4.6.1中 [英] ValidationSummary - ShowMessageBox is not displayed in 4.6.1

查看:55
本文介绍了ValidationSummary - ShowMessageBox未显示在4.6.1中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从targetFramework =" 4.5"升级了一个大型项目。 to targetFramework =" 4.6.1"并且不再显示ValidationSummary MessageBox。 

I have upgraded a large project from targetFramework="4.5" to targetFramework="4.6.1" and the ValidationSummary MessageBox is not displayed anymore. 

如果 - httpRuntime targetFramework =" 4.6.1" - 从web.config文件中删除,然后将显示MessageBox。但是,这将导致许多其他问题。

If - httpRuntime targetFramework="4.6.1" - is removed from the web.config file then the MessageBox will be displayed. But this will cause many other problems.

在您不希望使用宝贵的页面空间进行验证/错误消息的应用程序中,必须使用ValidationSummary MessageBox。

A ValidationSummary MessageBox is a must in applications where you don't want to use precious page space for validation / error messages.

任何人都知道这个问题以及解决方法或更正吗?我怀疑在从targetFramework =" 4.5"升级时需要手动修改某些设置。 to targetFramework =" 4.6.1

Anyone knowing about this problem and a workaround or correction? I suspect some settings need to be manually modified when upgrading from targetFramework="4.5" to targetFramework="4.6.1

Lennart Hoglund

Lennart Hoglund

httpRuntime < span style ="color:#0000ff; font-size:small"> targetFramework = " 4.6.1 "

httpRuntimetargetFramework="4.6.1"

- 在web.config文件中关闭(删除) 然后会显示MessageBox但这会导致许多其他问题.ValidationSummary MessageBox


是应用程序中的必需项,您不希望将页面空间用于验证消息.4.6中出现了同样的问题并且报告了。


它在4.5中工作正常。这使我们无法迁移大型应用程序。有任何关于解决方案的建议吗?

- turned off (removed) in the web.config file  then the MessageBox will be displayed but this will cause many other problems. A ValidationSummary MessageBox
is a must in application where you don't want to use page space for validation messages. The same problem occurred in 4.6 and was reported.
It worked fine in 4.5. This is stopping us from migration a big application. Any suggestion for a work-around?

Lennart Hoglund

Lennart Hoglund

推荐答案

您好Lennart Hoglund,

Hi Lennart Hoglund,

>> ValidationSummary - ShowMessageBox未显示在4.6.1中,

 我已在MSDN中检入, ValidationSummary.ShowMessageBox属性 &bbsp;
最高支持.NET Framework 是4.6和4.5,但根据您的标题,您的项目目标是4.6.1。我担心会有一些漏洞。我还要办理登机手续.Net 4.6,
ValidationSummary.ShowMessageBox在我身边工作正常。 现在我建议您删除4.6.1中的控件并重新创建它以再次测试。如果你仍然遇到同样的问题。我怀疑它不支持.Net4.6.1中的
。   然后你应该定位到4.6并再次测试。

 I've checked in MSDN, ValidationSummary.ShowMessageBox Property  the highest support .NET Framework  is 4.6 and 4.5, but based on your title, your project target is 4.6.1. I am afraid there is some slip. I've also check in .Net 4.6, ValidationSummary.ShowMessageBox works fine on my side. Now I would suggest you delete the control in 4.6.1 and recreate it to test again. If you still meet the same issue. I suspect that it is not support in .Net4.6.1.   Then you should target to 4.6 and test again.

以下是.NET Framework 4.6和4.5的迁移指南

Here is a Migration Guide to the .NET Framework 4.6 and 4.5

https://msdn.microsoft.com/en-us/library/ff657133%28v=vs.110% 29.aspx?f = 255& MSPPError = -2147217396

顺便说一下,这是一个web控件,y 我们的问题与asp.net/有关网络技术,为了更好的支持,请将您的问题发布到下面的asp.net论坛,这个论坛是针对特定的C#代码问题:

http://forums.asp.net/

By the way, this is a web control, your issue is related to asp.net/web technology and for a better support on this please post your question to the asp.net forum below, this forum is for C# code issues in specific:
http://forums.asp.net/

希望这会有所帮助。

祝你有愉快的一天!

Kristin


这篇关于ValidationSummary - ShowMessageBox未显示在4.6.1中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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