小编vir*_*vir的帖子

将index.html设置为默认页面

我有一个空的ASP.NET应用程序,我添加了一个index.html文件.我想将index.html设置为网站的默认页面.

我试图右键单击index.html并设置为起始页面,当我运行它时,url是:http://localhost:5134/index.html但我真正想要的是当我输入:时http://localhost:5134,它应该加载index.html页面.

我的路线配置:

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

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc asp.net-mvc-routing

30
推荐指数
4
解决办法
4万
查看次数

jQuery拖放ul和li元素

一方面我得到了<ul><li>.在<ul><li>元素应该拖和DROP掉.目标是divspan.我该怎么开始?

jquery jquery-ui jquery-plugins

4
推荐指数
1
解决办法
2万
查看次数