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.
Related
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
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/
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.
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
How can I setup multiple projects using areas in asp.net mvc 2?
I did't need to do anything, just registering my area.