Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

How to set default page asp.net MVC

public static void RegisterRoutes(RouteCollection routes)
{
    routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

    routes.MapRoute(
        name: "Default",
        url: "{controller}/{action}/{id}",
        defaults: new 
        { 
            controller = "Home", // default controller
            action = "Index",  // default action on the controller
            id = UrlParameter.Optional
        }
    );
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: escape chars for regex c# 
Csharp :: wpf databinding 
Csharp :: system.random reuses numbers 
Csharp :: c sharp async 
Csharp :: how to call last string from text file C# 
Csharp :: c# subtract 24 hours form datetime 
Csharp :: c# string verbatim 
Csharp :: c# Write a program to reverse an array or string 
Csharp :: How to execute script in C# 
Csharp :: messagebox yes no c# 
Csharp :: c# template strings 
Csharp :: Check if list contains any of another list 
Csharp :: c# how to initialize an array 
Csharp :: datatable select c# 
Csharp :: .net using appsettings variables 
Csharp :: convert stream to base64 string c# 
Csharp :: c# sequential struct with fixed array size 
Csharp :: unity move camera to player fluent 
Csharp :: DataGridView set column cell Combobox 
Csharp :: rename join ta le in many to many 
Csharp :: internal working of ioc container c# 
Csharp :: function to accept interger 
Csharp :: dsharp emoji from string 
Csharp :: validate preview input number wpf 
Csharp :: c# get innermost exception 
Csharp :: remove starting 0 in astring C# 
Csharp :: how to declare variables in c# 
Csharp :: qget ViewSchedule revit api 
Csharp :: autoclicker for yes/no in c# indicator 
Csharp :: Fix Array outside the bonus 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =