简体   繁体   English

ASP.NET MultiView找不到其视图

[英]ASP.NET MultiView Can't Find its View

We have a custom control built for our Umbraco Site and this week I had to add another form to our custom form user control. 我们为Umbraco网站构建了一个自定义控件,这周我不得不在自定义表单用户控件中添加另一个表单。

However, it decides to not get discoverable by Umbraco, throwing this error: 但是,它决定不被Umbraco发现,并引发以下错误:

The view null cannot be found inside MultiViewOptions, the ActiveView must be a View control directly inside a MultiView 在MultiViewOptions中找不到视图null,ActiveView必须是直接在MultiView内部的View控件

I took the user control and added it to a blank asp.net site and it works correctly. 我接受了用户控制,并将其添加到一个空白的asp.net网站中,并且可以正常工作。

but on Umbraco it does not. 但是在Umbraco上却没有。

Further more I added a clause to call it directly if it couldn't be found by the normal way we are doing it and again it says its not there. 此外,我添加了一个子句直接调用它(如果我们在正常情况下无法找到它),并且再次声明该子句不存在。

I'm totally out of ideas as to how this view can't be located. 关于如何定位此视图,我完全没有想法。

Any kind of help will save me from my sanity. 任何形式的帮助都会使我免于理智。

I finally figured it out and it was a moment of dumbness for me. 我终于想通了,对我来说这是一个愚蠢的时刻。

I failed to upload the html portion of the user control only uploading the dll portion, which now after taking the weekend to rest makes a lot of sense. 我无法上载用户控件的html部分,而仅上载dll部分,这使周末休假后变得非常有意义。

my form is now visible. 我的表格现在可见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM