Please check the attached code. It's not working. I have done my code from below link:-
http://www.dotnetfunda.com/articles/article1317-how-to-create-a-simple-model-in-aspnet-mvc-and-display-the-same-tutorial-.aspx
Please help me.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Jul 19, 2013, 10:40 PM EDT
Changes:
Model path in View
Create new Customer Folder in view
Modify global.asax.cs file
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Jul 19, 2013, 6:37 PM EDT
Change the Controller value from "Home" to "Default1" in RegisterRoute() method under global.asax.cs file. like
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Default1", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}
I have attached updated code it
You can get more example from here
http://www.c-sharpcorner.com/UploadFile/3d39b4/getting-started-with-razor-view-engine-in-mvc-3/
OR
below link has basic application in MVC 2
http://www.c-sharpcorner.com/UploadFile/3d39b4/creating-your-first-Asp-Net-mvc-application/
Thanks,
Sandeep
Preeti AgrawallaRank #6,677 · 259 reputationPosted Jul 19, 2013, 8:47 PM EDT