I'm facing an issue in a project that I'm currently working on, I'm using ASP.NET MVC.
The scenario as follow:
- I have a login page (Username and Password).
- Whenever I navigate to localhost:5588/login, the below action method will be called 2 or 3 times (I'm using a Break Point inside this method to catch the call).
public ActionResult Login()
{
return View();
}
The question is, why this method is called 2 - 3 times whenever I enter the login page ?
P.S #1: Not only the Login page is being called 2-3 times, also each Action method have the same issue.
P.S: #2: I'm using the below route:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Login", action = "Login", id = UrlParameter.Optional }
);
}
UPDATE:
This issue happens only on Google Chrome!