Z
Z
ZedRott2014-09-03 18:16:01
ASP.NET
ZedRott, 2014-09-03 18:16:01

How to set default page in ASP.NET?

How to set default catalog page in ASP.NET (similar to index.php in Apache)? Is there any setting in Web.config for this? What extension should the file have?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Silin, 2014-09-03
@ZedRott

The Global.asax.cs file has this:
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
Here you can change the start page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question