小编Ver*_*mid的帖子

ASP.NET MVC:没有为此对象定义的无参数构造函数

Server Error in '/' Application.
--------------------------------------------------------------------------------

No parameterless constructor defined for this object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.

Source Error: 


Line 16:             HttpContext.Current.RewritePath(Request.ApplicationPath, false);
Line 17:             IHttpHandler httpHandler = new MvcHttpHandler();
Line 18:             httpHandler.ProcessRequest(HttpContext.Current);
Line 19:             HttpContext.Current.RewritePath(originalPath, false);
Line 20:         }
Run Code Online (Sandbox Code Playgroud)

我正在关注Steven Sanderson的" Pro …

asp.net-mvc invalidoperationexception

165
推荐指数
11
解决办法
23万
查看次数

TableLayoutPanel 由于自动调整大小和/或嵌套 TableLayoutPanel 而变慢?

我有一些 TableLayoutPanel,其中第一个“层”有 1 列和 10 行,其中一些行包含 UserControl 或另一个具有 2 或 3 列和一些行的 TableLayoutPanel。其中一两个包含另一个 TableLayoutPanel,仅此而已。所以这是嵌套 TableLayoutPanel 的最多 3 个“级别”。其中大部分设置为自动调整大小,因为某些用户控件可能会更改其大小。当表单包含这样一个嵌套的 TableLayoutPanel 时,UserControls“闪烁”,看起来它们加载非常缓慢。

  • 我是否使用过多的自动调整大小?
  • 还是我的面板嵌套太多?

c# tablelayoutpanel winforms

1
推荐指数
1
解决办法
6869
查看次数