I've just installed Visual Studio 2010 and have created a new MVC2 project so that I can learn about the changes and updates and have discovered an issue with areas that I'm not sure what to make of.
I created a new EMPTY MVC2 project
I right clicked the project and, from the context menu, added a new area called "Test"
In the new test area, I…
OK I'm completely stumped here:
I have installed (and reinstalled) ASP.NET MVC2 installed several times and I still can't see the ASP.NET MVC2 project templates shown in Visual Web Developer 2008 Express.
I had checked the default project directory templates and had verified that those templates are installed, for example these templates files…
Hello,
It looks like the final release for ASP.NET MVC 2 has been already around for 2 weeks. Unfortunately, I can't find documentation that's intended for MVC 2 exclusively. I've checked Amazon.com (no book yet on MVC2), ScottGu's Blog (only 2 short posts), ASP.NET/MVC website (they've only posted what are alreadi in the ScottGu's blog).
Any…
Hi,
I am looking for some examples of how to do model binding in ASP.NET MVC2 for COMPLEX objects.
All the exmples I can find are of simple objects with no child collections or child objects.
If I have an Expense object with a child ExpensePayment object.
In rails, child objects are rendered with the HTML name attributes like this:
…
Now that the MVC 2 framework has been out for a while, I'm finding it very difficult to find documentation & answers specific to MVC2.
What are some good sites specific to MVC2?
We have a number of .NET4 RC ASP.NET MVC2 RTM web applications running on a Windows 2008 R2 server. All behave very well except one that we regularly find running at 99% CPU.
It is the most complex of the applications, but is not doing anything extraordinary. It relies on ASP.NET Cache quite heavily, but we have limited the amount of…
A new MVC 2 project worked on my local machine but when it was deployed to the test server it gave the error 'Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.' I have the full Visual Studio 2010 installed on my local machine but just the…
I went to http://www.asp.net/mvc/ to try to install ASP.NET MVC.
I didn't know, but MVC is now at version 2.
There's a nifty thing called the Microsoft "Web Platform Installer" (WPI) which basically is a small installer-driver tool that presents a menu of things I might want to install, to do web things on Windows. On the menu…
I was following Steven Sanderson's 'Pro ASP.NET MVC Framework' book.
On page 132, in accordance with the author's recommendation, I downloaded the ASP.NET MVC Futures assembly, and added it to my MVC project.
Then, without encouragement from the author, I downloaded, installed, and incorporated the ASP.NET MVC2 Preview 1 dlls into…
We're currently rewriting our organizations ASP.NET MVC application which has been written twice already. (Once MVC1, once MVC2). (Thank god it wasn't production ready and too mature back then).
This time, anyhow, it's going to be the real deal because we'll be implementing more and more features as time passes and the testruns…
Hi,
we are building a new web application using Microsoft ASP.NET MVC2 and Entity Framework 4. Although I am sure there is not one right answer to my question, we are struggling to agree a VS2010 solution structure.
The application will use SQL Server 2008 with a possible future Azure cloud version. We are using EF4 with T4…
I have user control in my MVC2 app placed in the Content folder (it's not supposed to be a view, just reusable part of the app).
UserControl1.ascx looks like:
<@ Control AutoEventWireup="true" Language="C#" CodeFile="~/Content/UserControl1.ascx.cs" Inherits="MVCDrill.Content.UserControl1" %>
<div runat="server"…
Async actions in AsyncControllers (in MVC2) have two action methods (ActionNameAsync and ActionNameCompleted) which seem to confuse T4MVC.
If it can't be done with T4MVC, is there a way to disable it from trying to include these methods?
I've decided to take the suggestion from Robert Harvey on this site and build an application using ASP.Net MVC.
When I went to Bing for a brief overview, I saw there was an MVC2.
What is the difference and should I care?
I just grabbed vs2010 release from msdn and I wanted to find out if anyone had any issues installing this on a machine that had mvc2 installed already for use with vs2008.
Can anyone point me to any self-contained, complete, current reference materials/projects using NHibernate in an ASP.NET MVC2 application?
I have looked at Sharp Architecture, but I am not sure I need the complexity in that project. I certainly don't know enough about it to know if it is over-engineered for my purposes.
…
I have a requirement, in an MVC2 web application, to validate that the user is at least 13 years old. Is there a date/datetime validation attribute that will enable me to do this?
Dear All
Iam new to MVC2 and having a little problem with implementing validation via buddy classes.
Iam using Repository pattern with dependency injection.
My Entity Object Model is in Data Layer Project and Buddy Classes are in Business Layer project and MVC 2 Project as a separate Presentation Layer Project.
Can any…
I am currently learning asp.net MVC2. I was trying to do a simple project similar to tadalist.com
Could you please guide me to some articles on how to create the dynamic textboxes and how to capture the user input for persistance?
Thanks
How would one add an "id" attribute to Html.LabelFor() in ASP.NET MVC2?
This is my label code:
<%=Html.LabelFor(x => x.FirstName)%>
This is my failed attempt:
<%=Html.LabelFor(x => x.FirstName, new { @id = "first-name" } )%>
Thanks.
I create a SL4 Application and then I say I want to create a MVC site in addition. But instead of create a VIEW and putting showing the SL4 object there and creating a empty MVC type Default page... it just creates a SilverlightApplicationTestPage.aspx in the root!
Does anyone know any small sample code anywhere that…
Hello.
I'm building ASP.NET MVC2 application, and using Entity Framework as ORM. I am having troubles updating object in the database. Every time I try entity.SaveChanges(), EF inserts new line in the table, regardless of do I want update, or insert to be done. I tried attaching (like in this next example) object to…