Dotnet, DotnetCore, Azure, C#,VB.net, Sql Server, WCF, MVC ,Linq, Javascript and Jquery
24 February 2013
17 February 2013
MVC Video Tutorial Collection
MVC Video Tutorial Collection
Pros and Cons of ASP.NET MVC
MVC Beginner to Expert
Pros and Cons of ASP.NET MVC
MVC Beginner to Expert
9 February 2013
Setting the Default Page or Route in MVC application
Setting the Default Page or Route in MVC application
For convenience, we are going to tell MVC that requests to the / URL for our application should be
Setting the Controller for the Default Route
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Product", action = "Index", id = UrlParameter.Optional }
)
For convenience, we are going to tell MVC that requests to the / URL for our application should be
directed to the Index action method of the Product controller. To do this, open the Global.asax file and
find the RegisterRoutes method. In this method, there is a call to routes.MapRoute. Change the value
assigned to the controller property from Default to Product,
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Product", action = "Index", id = UrlParameter.Optional }
)
Subscribe to:
Posts (Atom)
Implementing OAuth validation in a Web API
I mplementing OAuth validation in a Web API Implementing OAuth validation in a Web API using C# typically involves several key steps to sec...
-
ViewBag, ViewData, TempData and View State in MVC ASP.NET MVC offers us three options ViewData, ViewBag and TempData for passing data from...
-
// Export Datatable to Excel in C# Windows application using System; using System.Data; using System.IO; using System.Windows.Forms; ...