Asp.Net MVC - Update live Web site - asp.net-mvc-2

What is the best way to update a live Web site created with Asp.Net MVC 2.0 ?
Using the app_offline.html used in Asp.Net ?
Other new way ?

ASP.NET MVC running on the top of ASP.NET app_offline still applies, so updating an ASP.NET MVC site is no different than updating a classic ASP.NET site.

Related

State management techniques ASP .NET MVC 2

I am new to ASP.NET MVC and have worked in ASP.NET before. I am starting a new project in ASP.NET MVC 2 and wanted to find out what all state management techniques are available in ASP.NET MVC 2.
Can anyone please suggest some good resource.
Thanks.
You can use Session just as in ASP.NET WebForms. Was there anything else you wondered? You don't have ViewState as in WebForms, but you can use ViewDatato pass data between controllers and views (see e.g. http://msdn.microsoft.com/en-us/library/dd394711.aspx). What kind of state are you planning to manage?
For state management you can use Session, but to do it the MVC way, you should combine it with action filters.
Here are some links that can help you:
ASP.NET MVC Filters and Statefulness
mvcConf 2 - Brad Wilson: Advanced MVC 3

asp.net mvc page lifecycle event

Currently we are migrating an existing asp.net web application to asp.net mvc 2 platform. All of our pages performs some business functionality before loading the page or initializing the page. How to achieve this similar behavior in asp.net mvc
The logic which we have currently in pagebase class for web app like this..
if (!Page.IsPostBack)
// Presenter.PerformStartUp()
Please help.
Thanks
Subu
ASP.NET MVC is a totally different pattern than what you might have been used in classic WebForms. There are no events in MVC. The are no pages in MVC. There is notion of PostBack in MVC. There is no ViewState in MVC. There are no server side controls in MVC.
In MVC you have a Controller which receives the user request, it manipulates the Model and passes a view model to the View for displaying. A good starting point is here: http://asp.net/mvc
If the existing application you are trying to migrate has been written properly and it has a service layer and a data access layer at best you could reuse those parts into the new ASP.NET MVC application.
In asp.net mvc you create ActionResult methods by decorating them with the attribute [HttpPost] and [HttpGet](HttpGet is default) this is what sepparates between a Get and Post.

Using FoxCop 1.36 with ASP.NET MVC Project

I am developing an application in ASP.NET MVC 2. I would like to use FoxCop 1.36. Is there a way to use the foxcop for ASP.NET MVC Projects. If possible, kindly let me know the procedures.

Web CMS supporting Asp.Net mvc 2

I have created an Asp.Net MVC 2 application. Now i want to integrate it with content management system. Is there any free or opensource CMS which supports MVC2. I tried KOOBOO CMS but i couldn't get how do I integrate my application into it and create a CMS site.
Orchard is Microsoft's open source CMS using MVC 3: http://orchard.codeplex.com/

Anyone have any issues with using PLINQO and ASP.NET MVC 2.0?

I'm asking because I'm working on an ASP.NET MVC 1.0 site, thinking of upgrading to ASP.NET MVC 2.0. Then I read that PLINQO 5.0 was released (I had never heard of PLINQO before) and have been impressed with what PLINQO appears to be capable of.
1) Is PLINQO capable of building out an ASP.NET MVC 2.0 UI project when it's run?
2) Have you had any bad experiences using PLINQO (particularly in an ASP.NET MVC app)?
Let me make sure I have the scenario right in my mind:
Using PLINQO (assuming it supports ASP.NET MVC 2.0), I should be able to point it to my DB and it will create 3 projects: data, test, and mvc 2.0 UI? The data would contain LINQ to SQL queries, with the PLINQO extensions added in and the other projects setup to use the data project by default?
I'm exploring PLINQO 5.0 and here are my answers,
1) No, PLINQO will not build MVC2 UI Project. But the Data project supports MCV2, take a look the latest Traker sample application.
2) No and still a better choice comparing to EF4.
HTH