About 10,300,000 results
Open links in new tab
  1. Redirect to login when unauthorized in ASP.NET Core

    Oct 24, 2016 · In the previous ASP.NET MVC, there was an option to redirect to the login action, if the user was not authenticated. I need the same thing with ASP.NET Core, so I: created a …

  2. ASP.NET MVC: What is the correct way to redirect to …

    46 I am fairly new to MVC but not sure exactly which Redirect... replaces the standard redirect used in WebForms is the standard Response.Redirect() For instance, I need to redirect to …

  3. What is the difference between ASP.NET and ASP.NET MVC?

    Aug 28, 2012 · ASP.NET MVC is an application framework based on the Model-View-Controller architectural pattern. This is what might be considered a "canned" framework for a specific …

  4. asp.net mvc - MVC [HttpPost/HttpGet] for Action - Stack Overflow

    I am using MVC C#. Can somebody give an example on why one would use [HttpPost/HttpGet] for an Action. How can an active have both - what is the practical use?

  5. asp.net mvc - Creating a Service Layer for my MVC application?

    Feb 15, 2013 · 128 I usually use a Service Layer when developing ASP.NET MVC application. It is similar to the Service Layer Pattern that Martin Fowler discusses in Patterns of Enterprise …

  6. How to get the current user in ASP.NET MVC - Stack Overflow

    In a forms model, I used to get the current logged-in user by: Page.CurrentUser How do I get the current user inside a controller class in ASP.NET MVC?

  7. asp.net mvc - Html.DropDownList - Disabled/Readonly - Stack …

    Oct 28, 2009 · Notice @Thomas' answer below. Marking the Html.DropDownList as disabled stops the form from posting the value it holds. How can the control be disabled or read-only …

  8. Authorize attribute in ASP.NET MVC - Stack Overflow

    Jun 1, 2012 · I am having a hard time to understand real use of [Authorize] attribute in ASP.NET MVC. As per the concept goes, if we decorate a controller method with [Authorize] attribute, …

  9. asp.net mvc - Redirect to Action in another controller - Stack …

    return RedirectToAction("LogIn", "Account"); The problem is that I get a 404 when this line gets executed because an attempt is made to redirect to a non-existent action in Controller A. I …

  10. ASP.NET MVC - Getting QueryString values - Stack Overflow

    May 15, 2018 · Under ASP.NET MVC are you supposed to pick up QueryString params the same way you do in ASP.NET WebForms? or does the [AcceptVerbs(HttpVerbs.Get)] declaration …