Tuesday 14 June 2011

sample example -How to create mvc 2 application


After Clicking ok




Asking to create unit test for an application.Default it should be Yes.Developer wish to create unit for a project.now i am creating it.













The above figure shows the application structure and default template for mvc2.

1) Controller




In mvc ActionResult is like page.Instead of page actionresult display view pages.




Right click in Actionresult and click Go To View.





Debug the solution and the output is










2 comments: