开发者

Where is the 'ViewLocator' or 'WebformViewLocator' in ASP.NET MVC 2

开发者 https://www.devze.com 2023-01-05 22:42 出处:网络
I\'m looking at some (old) sample projects of ASP.NET MVC 2, to do some self-teaching on the subject.

I'm looking at some (old) sample projects of ASP.NET MVC 2, to do some self-teaching on the subject.

However, I 'WebformViewLocator' no longer seems to be present in MVC2, while it is used in the sample projects...

Searching for breaking chan开发者_高级运维ges on WebFormViewLocator does not make me any smarter...

Has it been removed/replaced/renamed?


You can see these classes in the first check-in of the code on Codeplex:

View Locator http://aspnet.codeplex.com/SourceControl/changeset/view/590#8302

Web Form View Locator http://aspnet.codeplex.com/SourceControl/changeset/view/590#8310

But they were not present in RC1 but if you check out classes such as ViewResult, is has its own FindView method.

http://aspnet.codeplex.com/SourceControl/changeset/view/21528#266531

0

精彩评论

暂无评论...
验证码 换一张
取 消