About 10,400,000 results
Open links in new tab
  1. 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 get used …

  2. 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 ASP.NET …

  3. 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?

  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. 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 way of …

  6. asp.net mvc - Html.DropDownList - Disabled/Readonly - Stack Overflow

    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 but still submit the …

  7. ASP.NET MVC: What is the correct way to redirect to pages/actions in …

    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 other pages in a …

  8. asp.net mvc - Redirect to Action in another controller - Stack Overflow

    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 want to …

  9. 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, only …

  10. Calling ASP.NET MVC Action Methods from JavaScript

    Jan 21, 2012 · Calling ASP.NET MVC Action Methods from JavaScript Asked 13 years, 11 months ago Modified 2 years, 10 months ago Viewed 297k times