strongly-typed-view Questions
4
I am creating a view in Microsoft Visual Studio 2012 Express and I want it to be a strongly-typed partial view, but I am getting the following error:
C:\Program Files(x86)\Microsoft Visual Studi...
Inaccessible asked 1/2, 2013 at 18:48
2
Solved
I'm trying to pass my model to my view in Razor. With the old method, I could define it at the top of the file (the model).
I did some googling, and thought I figured it out - doesn't seem to be w...
Pamphlet asked 17/1, 2013 at 1:7
1
I'm building an MVC 3 application where MEF is used. The main idea is to have plug-in mechanism where models, controllers and views are loaded dynamically during runtime from mef container.
Each p...
Bleak asked 27/11, 2011 at 12:16
4
Solved
If i got view which inherits from:
System.Web.Mvc.ViewPage<Foo>
Where Foo has a property Bar with a type string
And view wants to render strongly typed partial view which inherits from:
...
Woebegone asked 26/6, 2009 at 13:7
2
Solved
I'm new to MVC, so maybe this is a stupid question - I'm trying to get my head around strongly typed views in asp.net mvc. I'm working on version 3.
If I have a project with 2 models - say Person a...
Totemism asked 16/8, 2011 at 8:30
3
Solved
I'm actively developing desktop applications, local and network services, some classic ASP.NET, etc., so I'm used to static compilation and static code analysis. Now that I'm (finally) learning ASP...
Bravado asked 6/6, 2011 at 14:31
1
Solved
I have some internal automatic properties in my view model but my strongly-typed view doesn't see them. Everything is in the same assembly, so why is this happening?
public class MyViewModel {
pu...
Bittencourt asked 27/4, 2011 at 19:28
1
Solved
I have a model that looks like this:
public class Person
{
public string PostalCode {get;set;}
}
Then I have a razor view
@model MvcApp1.Person
Your location is: @Model.PostalCode
When I am...
Mighell asked 18/4, 2011 at 22:18
3
Solved
I am having a trouble while trying to create an entity with a custom view modeled create form. Below is my custom view model for Category Creation form.
public class CategoryFormViewModel
{
publi...
Cropeared asked 22/3, 2010 at 18:59
1
Solved
I am attempting to create a strongly typed view with a "MVC View User Control" that is being rendered using Html.RenderPartial(). The top of my ascx file looks like this:
<%@ Control Language="...
Enroot asked 17/3, 2010 at 18:26
4
Solved
I have a View strongly typed to an Item class. In my controller I need to send two different List. Is there an easier way to do this other than creating a new class with two List.
What I am ultima...
Tampon asked 14/8, 2009 at 2:9
1
© 2022 - 2024 — McMap. All rights reserved.