我需要的鏈接是這樣的格式http://localhost:32136/username/HomePage網址的用戶名重定向在asp.net
例如: - https://www.facebook.com/xxxyyyy
請建議我的鏈接如何構造URL。我已經配置的路由.config as
routes.MapRoute(
name: "Profile",
url: "{username}",
defaults: new { controller = "Account", action = "Profile" },
constraints: new { username = "Vinoth" }
);
哪個列表,你會使用?你可以把更多的代碼放在這裏嗎? –
http:// localhost:32136/username /主頁 用戶名將是vinoth例如如何操作 –
我認爲這是URL,您將從列表中獲取記錄? –