asp.net-mvc

What's the best way to implement user controls in ASP.NET MVC?

Like many others on this site I am considering a move to ASP.NET MVC for future projects. Currently my sites are running the traditional ASP.NET 2.0 Web Forms, and it works Ok for us, so my other option is just to stick with what I know and make the move to ASP.NET 3.5 with the integrated AJAX stuff. I'm wondering about how user contro...

Which way do you prefer to create your forms in MVC?

Which way do you prefer to create your forms in MVC? <% Html.Form() { %> <% } %> Or <form action="<%= Url.Action("ManageImage", "UserAccount") %>" method="post"> </form> I understand that Html.Form() as of PR5 now just uses the URL provided by the request. However something about that doesn't sit well with me, especially since I w...

What View Engine are you using with ASP.NET MVC?

I know you can use several different view engines with ASP.NET MVC: ASPX, obviously NVelocity Brail NHaml et al... The default ASPX view engine seems to make the most sense to me, coming from an ASP.NET WebForms background. But, I wanted to get an idea of the pros and cons of each and see what most people are using. Which does S...

ASP.NET MVC and Spring.NET

Starting a new project and would like to use one of the MVC framworks. ASP.NET MVC is still in preview but Spring.net is in production and has a history with Java. I'd like to know the general lowdown between the two. Current questions.. What are the major feature differences? What about deployment/hosting issues? Future support? Do y...

Categories of controllers in MVC Routing? (Duplicate Controller names in separate Namespaces)

Hey guys, I'm looking for some examples or samples of routing for the following sort of scenario: The general example of doing things is: {controller}/{action}/{id} So in the scenario of doing a product search for a store you'd have: public class ProductsController: Controller { public ActionResult Search(string id) // id being t...

How does Web Routing Work?

I need a good understanding of the inner workings of System.Web.Routing. Usually we define the RoutesTable. But how does it do the routing? The reason I'm asking it is that I want to pass the routing to subapps. What I want to see working is a way of passing the current request to mvc apps that work in other AppDomains. Just to make it ...

What's main differences between "new" ASP.NET MVC framework and typical Java Struts projects ?

I'm more a Java developer than a .Net guy but It seems to me that new Microsoft MVC's framework seems like typical combination of Java existing projects like : Struts (for handling the MVC), Hibernate (for object to SQL mapping, like LINQ), and URL rewriting to handle pretty URLs (that's less common). Also, It seems to me very simila...

ASP.NET MVC Performance

I found some wild remarks that ASP.NET MVC is 30x faster than ASP.NET WebForms. What real performance difference is there, has this been measured and what are the performance benefits. This is to help me consider moving from ASP.NET WebForms to ASP.NET MVC. ...

Why does the ASP.Net Web Forms model "suck"?

I've heard Jeff Atwood, Joel Spolsky, and many other legendary people talk about how the ASP.NET Web Forms model sucks (so this question is kind of directed to them, hopefully Jeff is reading). Now, I highly respect their opinion, given their background and expertise, but truth be told, I absolutely LOVE Web Forms. I think the model is ...

Upgrading To Visual Studio 2008 From 2005

What are some advantages available in Visual Studio 2008 that I can bring up to my boss so I can convince him to upgrade from 2005? My main goal is to use MVC, but I need some good reasons why this would be better than what we have now. ...

Any way to handle Put and Delete verbs in ASP.Net MVC?

just wondering if anyone knows of a truly restful Put/delete implementation asp.net mvc preview 5 preferably. ...

ASP.NET MVC Preview 5 routing ambiguity

I have a problem with a sample routing with the preview 5 of asp.net mvc. In the AccountController I have 2 actions: public ActionResult Delete() public ActionResult Delete(string username) While trying to look for Account/Delete or Account/Delete?username=davide the ControllerActionInvoker throws a exception saying that Delete r...

How do the CakePHP and codeigniter frameworks compare to the ASP.NET MVC framework?

As a classic ASP developer about once a year since ASP.NET came out I decide I really gotta buckle down and learn this fancy new ASP.NET. A few days in and messing with code behinds and webforms and all this other stuff I decide the new fancy stuff is whack and go find something else to learn (PHP and Ruby and Python were all fun to pla...

How do I publish a Asp.net web application using MSBuild?

I am trying to publish an Asp.net MVC web application locally using the NAnt and MSBuild. This is what I am using for my NAnt target; <target name="publish-artifacts-to-build"> <msbuild project="my-solution.sln" target="Publish"> <property name="Configuration" value="debug" /> <property name="OutDir" value="builds\" /> ...

.NET MVC Ambiguous Type Reference

Not entirely sure what's going on here; any help would be appreciated. I'm trying to create a new .NET MVC web app. I was pretty sure I had it set up correctly, but I'm getting the following error: The type 'System.Web.Mvc.ViewPage' is ambiguous: it could come from assembly 'C:\MyProject\bin\System.Web.Mvc.DLL' or from assembly 'C:\M...

Html.RenderPartial call from masterpage

Here is a scenario: Let's say I have site with two controllers responsible for displaying different type of content - Pages and Articles. I need to embed Partial View into my masterpage that will list pages and articles filtered with some criteria, and be displayed on each page. I cannot set Model on my masterpage (am I right?). How do I...

What's the best .NET library for OpenID and ASP.NET MVC?

I'm looking at using OpenID for my authentication scheme and wanted to know what the best .NET library is to use for MVC specific applications? thx ...

ASP.NET MVC Preview 4 - Stop Url.RouteUrl() etc. using existing parameters

Hi, I have an action like this: public class News : System.Web.Mvc.Controller { public ActionResult Archive(int year) { / *** / } } With a route like this: routes.MapRoute( "News-Archive", "News.mvc/Archive/{year}", ...

ASP.NET MVC quick start - a one-stop tutorial?

There are many ASP.MVC blog post bits and pieces scattered over different web sites, as well as couple of resource questions here - ASP.NET Model-view-controller (MVC) - where do I start from? and MVC Learning Resources I wonder if there was a one-stop tutorial posted yet on getting started with ASP.NET MVC? Thank you! Edit: I probabl...

ASP.NET MVC vs. Web client software factory (WCSF)

I have recently been doing a bit of investigation into the different types of Model View architectures, and need to decide which one to pursue for future in-house development. As I'm currently working in a Microsoft shop that has ASP.NET skills, it seems my options are between ASP.NET MVC and WCSF (Monorail is probably out of the as it w...