asp.net-mvc-3

ASP.NET MVC 3 - What features do you want to see?

I know a bunch of people that are really enjoying the improvements that ASP.NET MVC 2 made over the first release. I have just started to migrate our MVC 1 project over and so far areas has totally cleaned up the subfolder mess we had in our large scale application. As I dive deeper into all the improvements and changes that were made ...

Property-level validation errors hinder the validation of Class-level validation

Update after Bounty was awarded A new solution is coming up to this problem. Please refer to ASP.NET MVC 3 Preview 1 here: http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx Look in the section Validation Model improvements, where you will see the solution to my problem. Original Post Referri...

MVC 3 (Preview 1) Dynamic ViewModel

I've just taken a look at the new features available in the MVC 3 preview: ScottGu's Blog. There are a lot of good improvements and it's well worth a read to see where MVC is going. The thing that struck me was the addition of a dynamic type ViewModel. The point being that you would not need to reference view data using ViewModel["Messa...

Would it be worth to remove the .aspx/.ascx lookup if I don't plan to use them?

Now that MVC 3 Preview 1 here, we can use Razor (.cshtml) view engine. If a view not found, I get this error: The view 'a' or its master was not found. The following locations were searched: ~/Views/Home/a.aspx ~/Views/Home/a.ascx ~/Views/Shared/a.aspx ~/Views/Shared/a.ascx ~/Views/Home/a.cshtml ~/Views/Shared/a.cshtml Would it be wor...

What is the release date for ASP.NET MVC 3?

Looking at the preview 1 and it looks great ...

ASP.Net MVC 3 - Html Extensions...

Hey guys I'm playing around with Razor + MVC 3 and have a really simple scenario... Basically I'm trying to create a very basic HTML helper but I'm getting the following exception: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'ScriptCss' and no extension method 'ScriptCss' accepting a first argument of type...

HtmlString vs. MvcHtmlString

HtmlString vs. MvcHtmlString What are the differences bettween those two, or when to prefer one over the other? Edit: One thing to prefer MvcHtmlString over HtmlString is the extension method IsNullOrEmpty of MvcHtmlString. ...

Razor comment syntax

What is the syntax for server side comment in razor view? Here is the code that I want to comment: /* @helper NavItem() { } */ ...

Is Response.Write() working with Razor?

Is Response.Write() working with Razor? I tried to use @Html.RenderAction but I'm getting the error: CS1502: The best overloaded method match for 'Microsoft.WebPages.WebPageUltimateBase.Write(Microsoft.WebPages.Helpers.HelperResult)' has some invalid arguments ...

For a simple web application, what service locator library you prefer to use?

For a simple application that use asp.net mvc 3 and .net-4, what service locator application is preferred, with performance concern in mind? ...

In MVC, one Edit HttpPost is working, the other one isn't. What am I missing?

Googling generally and on SO hasn't helped me yet, so: I am building my first MVC application from scratch, going by the MVC Music Store example but instead building a little application where arena Fighters can be created and made to Fight each other. (Fighters and Fight have been made linked to underlying tables through EF). I have ...

What are the (currently) known bugs in MVC 3 - preview 1?

As I just asked a question on MVC 3 (where I'm probably doing something wrong), I realized I may run across bugs or (soon-to-be-)known issues. This is currently Preview 1 of MVC 3, after all. Is there already a set of known issues for MVC 3 Preview 1 (and if yes: what is it)? ...

JSON / MVC (3P1) HttpPost - not getting it to work on my EF class

In mixing and matching older tutorials with recent posts on MVC 3 Preview 1, I run into the following problem. I am trying to move to JSON-driven edits of my Fighter model (and the underlying db) instead of 'plain old' edits without JSON. I have an edit view (that uses a Shared EditorTemplate, fighter.ascx) setup for my Fighter class (w...

ASP.NEt MVC 3 P1 Dependency Injection to Filters

I have read through Brad Wilson's series of "ASP.NET MVC 3 Service Location" (http://bradwilson.typepad.com/blog/2010/07/service-location-pt4-filters.html) and tried to get the DI work with Unity, but it would not (System.NullReferenceException). Have searched everywhere but can find nothing that takes up the subject. So, how do I resolv...

Can Razor be used with visual studio 2008?

Scott Gu didn't talk about this in his blog post. Will there be intellisense support for razor on vs 2008? MS is giving everyone a hard time by releasing major upgrades so frequently :D ...

Upgrade MVC 2 to MVC 3 issues with views

I'm attempting to upgrade my existing ASP.net MVC 2 web application to MVC 3 so I can use the goodness that is the Razor Viewengine and other said improvements. After using the converter to convert my app from mvc2 to mvc3 I'm having issues with my strongly typed views. As an example here we have a view user control that is strongly ty...

Asp.Net MVC - Refresher Course

When MVC first came out, I was reading about it everyday and learning all I could about it. About the time MVC 2 RC2 came out, I stopped learning for various reasons (new house, new job, laziness). I now want to get back into MVC ... I have a half written blog that I want to finish, but I feel rusty when it comes to anything MVC. Can a...

What new features would you like to see in Asp.net MVC 3?

Asp.net MVC 3 preview 1 was released at the end of last month. Are there any new features you are excited about or any features you would like to see before it is fully released? ...

ASP.NET MVC 2/.NET 4/Razor - Can't use Any() extension method on a ViewModel member

I'm trying out the Razor ViewEngine from ASP.NET MVC 3 Preview 1 and I'm running into an issue trying to using the Any() extension method. Here's the code I use to set the property in the controller: ViewModel.Comparisons = DB.Comparisons.Where(c => c.UserID == this.UserID).ToArray(); Here's the code in the View where I try to use An...

Best design pattern for associating subdomain with area and PRG pattern?

Now that the next version of ASP.NET MVC is being prototyped and previewed (ASP.NET MVC 3 Preview 1 came out a couple of weeks ago), I wonder if we should call the attention of the Core Dev team (S Hanselman, Phil Haack and all) to this "feature." Is there a easy/non tacky way of associating subdomains areas? Something like: http://a...